file-systems: Convey hint via '&fix-hint'.
[jackhill/guix/guix.git] / gnu / system / examples / asus-c201.tmpl
CommitLineData
df2a9616
TS
1;; This is an operating system configuration template
2;; for a "bare bones" setup for an ASUS C201PA.
3
4(use-modules (gnu) (gnu bootloader depthcharge))
5(use-service-modules networking ssh)
6(use-package-modules linux screen)
7
8(operating-system
9 (host-name "komputilo")
10 (timezone "Europe/Berlin")
11 (locale "en_US.utf8")
12
13 ;; Assuming /dev/mmcblk0p1 is the kernel partition, and
14 ;; "my-root" is the label of the target root file system.
15 (bootloader (bootloader-configuration
16 (bootloader depthcharge-bootloader)
17 (target "/dev/mmcblk0p1")))
18
19 ;; The ASUS C201PA requires a very particular kernel to boot,
20 ;; as well as the following arguments.
37f8c50c 21 (kernel linux-libre-arm-generic)
df2a9616
TS
22 (kernel-arguments '("console=tty1"))
23
24 ;; We do not need any special modules for initrd, and the
25 ;; PrawnOS kernel does not include many of the normal ones.
26 (initrd-modules '())
27
28 (file-systems (cons (file-system
29 (device (file-system-label "my-root"))
30 (mount-point "/")
31 (type "ext4"))
32 %base-file-systems))
33
34 ;; This is where user accounts are specified. The "root"
35 ;; account is implicit, and is initially created with the
36 ;; empty password.
37 (users (cons (user-account
38 (name "alice")
39 (comment "Bob's sister")
40 (group "users")
41
42 ;; Adding the account to the "wheel" group
43 ;; makes it a sudoer. Adding it to "audio"
44 ;; and "video" allows the user to play sound
45 ;; and access the webcam.
46 (supplementary-groups '("wheel"
47 "audio" "video"))
48 (home-directory "/home/alice"))
49 %base-user-accounts))
50
51 ;; Globally-installed packages.
52 (packages (cons screen %base-packages))
53
54 ;; Add services to the baseline: a DHCP client and
55 ;; an SSH server.
56 (services (append (list (service dhcp-client-service-type)
57 (service openssh-service-type
58 (openssh-configuration
59 (port-number 2222))))
60 %base-services)))