diff options
Diffstat (limited to 'gnu/system/examples/desktop.tmpl')
| -rw-r--r-- | gnu/system/examples/desktop.tmpl | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/system/examples/desktop.tmpl b/gnu/system/examples/desktop.tmpl new file mode 100644 index 00000000000..988b8f937f8 --- /dev/null +++ b/gnu/system/examples/desktop.tmpl | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | ;; This is an operating system configuration template | ||
| 2 | ;; for a "desktop" setup with X11. | ||
| 3 | |||
| 4 | (use-modules (gnu) (gnu system nss)) | ||
| 5 | (use-service-modules desktop) | ||
| 6 | (use-package-modules xfce ratpoison wicd avahi xorg certs) | ||
| 7 | |||
| 8 | (operating-system | ||
| 9 | (host-name "antelope") | ||
| 10 | (timezone "Europe/Paris") | ||
| 11 | (locale "en_US.UTF-8") | ||
| 12 | |||
| 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)) | ||
| 22 | |||
| 23 | (users (cons (user-account | ||
| 24 | (name "bob") | ||
| 25 | (comment "Alice's brother") | ||
| 26 | (group "users") | ||
| 27 | (supplementary-groups '("wheel" "netdev" | ||
| 28 | "audio" "video")) | ||
| 29 | (home-directory "/home/bob")) | ||
| 30 | %base-user-accounts)) | ||
| 31 | |||
| 32 | ;; Add Xfce and Ratpoison; that allows us to choose | ||
| 33 | ;; sessions using either of these at the log-in screen. | ||
| 34 | (packages (cons* xfce ratpoison ;desktop environments | ||
| 35 | xterm wicd avahi ;useful tools | ||
| 36 | nss-certs ;for HTTPS access | ||
| 37 | %base-packages)) | ||
| 38 | |||
| 39 | ;; Use the "desktop" services, which include the X11 | ||
| 40 | ;; log-in service, networking with Wicd, and more. | ||
| 41 | (services %desktop-services) | ||
| 42 | |||
| 43 | ;; Allow resolution of '.local' host names with mDNS. | ||
| 44 | (name-service-switch %mdns-host-lookup-nss)) | ||
