doc: Add "lightweight desktop" OS config example.
[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 wm ratpoison certs)
8
9 (operating-system
10 (host-name "antelope")
11 (timezone "Europe/Paris")
12 (locale "en_US.UTF-8")
13
14 ;; Assuming /dev/sdX is the target hard disk, and "my-root"
15 ;; is the label of the target root file system.
16 (bootloader (grub-configuration (device "/dev/sdX")))
17
18 (file-systems (cons (file-system
19 (device "my-root")
20 (title 'label)
21 (mount-point "/")
22 (type "ext4"))
23 %base-file-systems))
24
25 (users (cons (user-account
26 (name "alice")
27 (comment "Bob's brother")
28 (group "users")
29 (supplementary-groups '("wheel" "netdev"
30 "audio" "video"))
31 (home-directory "/home/alice"))
32 %base-user-accounts))
33
34 ;; Add a bunch of window managers; we can choose one at
35 ;; the log-in screen with F1.
36 (packages (cons* ratpoison i3-wm xmonad ;window managers
37 nss-certs ;for HTTPS access
38 %base-packages))
39
40 ;; Use the "desktop" services, which include the X11
41 ;; log-in service, networking with Wicd, and more.
42 (services %desktop-services)
43
44 ;; Allow resolution of '.local' host names with mDNS.
45 (name-service-switch %mdns-host-lookup-nss))