file-systems: Convey hint via '&fix-hint'.
[jackhill/guix/guix.git] / gnu / system / examples / lightweight-desktop.tmpl
1 ;; This is an operating system configuration template
2 ;; for a "desktop" setup without full-blown desktop
3 ;; environments.
4
5 (use-modules (gnu) (gnu system nss))
6 (use-service-modules desktop)
7 (use-package-modules bootloaders certs ratpoison suckless wm)
8 (use-package-modules bootloaders certs ratpoison suckless wm xorg)
9
10 (operating-system
11 (host-name "antelope")
12 (timezone "Europe/Paris")
13 (locale "en_US.utf8")
14
15 ;; Use the UEFI variant of GRUB with the EFI System
16 ;; Partition mounted on /boot/efi.
17 (bootloader (bootloader-configuration
18 (bootloader grub-efi-bootloader)
19 (target "/boot/efi")))
20
21 ;; Assume the target root file system is labelled "my-root",
22 ;; and the EFI System Partition has UUID 1234-ABCD.
23 (file-systems (append
24 (list (file-system
25 (device (file-system-label "my-root"))
26 (mount-point "/")
27 (type "ext4"))
28 (file-system
29 (device (uuid "1234-ABCD" 'fat))
30 (mount-point "/boot/efi")
31 (type "vfat")))
32 %base-file-systems))
33
34 (users (cons (user-account
35 (name "alice")
36 (comment "Bob's sister")
37 (group "users")
38 (supplementary-groups '("wheel" "netdev"
39 "audio" "video")))
40 %base-user-accounts))
41
42 ;; Add a bunch of window managers; we can choose one at
43 ;; the log-in screen with F1.
44 (packages (append (list
45 ;; window managers
46 ratpoison i3-wm i3status dmenu
47 ;; terminal emulator
48 xterm
49 ;; for HTTPS access
50 nss-certs)
51 %base-packages))
52
53 ;; Use the "desktop" services, which include the X11
54 ;; log-in service, networking with NetworkManager, and more.
55 (services %desktop-services)
56
57 ;; Allow resolution of '.local' host names with mDNS.
58 (name-service-switch %mdns-host-lookup-nss))