doc: Add desktop configuration example.
[guix.git] / gnu / system / examples / desktop.tmpl
blob07e3f0b1d67c503c40abc50f15166a5ce3fda68d
1 ;; This is an operating system configuration template
2 ;; for a "desktop" setup with X11.
4 (use-modules (gnu) (gnu system nss))
5 (use-service-modules desktop)
6 (use-package-modules xfce ratpoison wicd avahi xorg)
8 (operating-system
9   (host-name "antelope")
10   (timezone "Europe/Paris")
11   (locale "en_US.UTF-8")
13   ;; Assuming /dev/sdX is the target hard disk, and "root" is
14   ;; the label of the target root file system.
15   (bootloader (grub-configuration (device "/dev/sdX")))
16   (file-systems (cons (file-system
17                         (device "root")
18                         (title 'label)
19                         (mount-point "/")
20                         (type "ext4"))
21                       %base-file-systems))
23   (users (list (user-account
24                 (name "bob")
25                 (comment "Alice's brother")
26                 (group "users")
27                 (supplementary-groups '("wheel"
28                                         "audio" "video"))
29                 (home-directory "/home/bob"))))
31   ;; Add Xfce and Ratpoison; that allows us to choose
32   ;; sessions using either of these at the log-in screen.
33   (packages (cons* xfce ratpoison    ;desktop environments
34                    xterm wicd avahi  ;useful tools
35                    %base-packages))
37   ;; Use the "desktop" services, which include the X11
38   ;; log-in service, networking with Wicd, and more.
39   (services %desktop-services)
41   ;; Allow resolution of '.local' host names with mDNS.
42   (name-service-switch %mdns-host-lookup-nss))