file-systems: Convey hint via '&fix-hint'.
[jackhill/guix/guix.git] / gnu / system / examples / bare-bones.tmpl
CommitLineData
36ffaca2
LC
1;; This is an operating system configuration template
2;; for a "bare bones" setup, with no X11 display server.
1dac8566
LC
3
4(use-modules (gnu))
36ffaca2 5(use-service-modules networking ssh)
0dddaa7b 6(use-package-modules screen ssh)
1dac8566
LC
7
8(operating-system
36ffaca2
LC
9 (host-name "komputilo")
10 (timezone "Europe/Berlin")
d2986552 11 (locale "en_US.utf8")
1dac8566 12
fc0e663f
LC
13 ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
14 ;; target hard disk, and "my-root" is the label of the target
15 ;; root file system.
2941b347
AW
16 (bootloader (bootloader-configuration
17 (bootloader grub-bootloader)
045ebb3e 18 (target "/dev/sdX")))
1dac8566 19 (file-systems (cons (file-system
a5acc17a 20 (device (file-system-label "my-root"))
1dac8566
LC
21 (mount-point "/")
22 (type "ext4"))
23 %base-file-systems))
24
25 ;; This is where user accounts are specified. The "root"
26 ;; account is implicit, and is initially created with the
27 ;; empty password.
bf87f38a 28 (users (cons (user-account
1dac8566
LC
29 (name "alice")
30 (comment "Bob's sister")
31 (group "users")
32
33 ;; Adding the account to the "wheel" group
b756d3da
LC
34 ;; makes it a sudoer. Adding it to "audio"
35 ;; and "video" allows the user to play sound
36 ;; and access the webcam.
37 (supplementary-groups '("wheel"
cf848cc0 38 "audio" "video")))
bf87f38a 39 %base-user-accounts))
53a7a016 40
0c36a681 41 ;; Globally-installed packages.
0c17f720 42 (packages (cons screen %base-packages))
0c36a681 43
36ffaca2
LC
44 ;; Add services to the baseline: a DHCP client and
45 ;; an SSH server.
907dd327
PN
46 (services (append (list (service dhcp-client-service-type)
47 (service openssh-service-type
48 (openssh-configuration
0dddaa7b 49 (openssh openssh-sans-x)
907dd327
PN
50 (port-number 2222))))
51 %base-services)))