desktop.tmpl 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ;; This is an operating system configuration template
  2. ;; for a "desktop" setup with GNOME and Xfce where the
  3. ;; root partition is encrypted with LUKS.
  4. (use-modules (gnu) (gnu system nss))
  5. (use-service-modules desktop)
  6. (use-package-modules certs gnome)
  7. (operating-system
  8. (host-name "antelope")
  9. (timezone "Europe/Paris")
  10. (locale "en_US.utf8")
  11. ;; Assuming /dev/sdX is the target hard disk, and "my-root"
  12. ;; is the label of the target root file system.
  13. (bootloader (bootloader-configuration
  14. (bootloader grub-bootloader)
  15. (target "/dev/sdX")))
  16. ;; Specify a mapped device for the encrypted root partition.
  17. ;; The UUID is that returned by 'cryptsetup luksUUID'.
  18. (mapped-devices
  19. (list (mapped-device
  20. (source (uuid "12345678-1234-1234-1234-123456789abc"))
  21. (target "my-root")
  22. (type luks-device-mapping))))
  23. (file-systems (cons (file-system
  24. (device "my-root")
  25. (mount-point "/")
  26. (type "ext4")
  27. (dependencies mapped-devices))
  28. %base-file-systems))
  29. (users (cons (user-account
  30. (name "bob")
  31. (comment "Alice's brother")
  32. (group "users")
  33. (supplementary-groups '("wheel" "netdev"
  34. "audio" "video"))
  35. (home-directory "/home/bob"))
  36. %base-user-accounts))
  37. ;; This is where we specify system-wide packages.
  38. (packages (cons* nss-certs ;for HTTPS access
  39. gvfs ;for user mounts
  40. %base-packages))
  41. ;; Add GNOME and/or Xfce---we can choose at the log-in
  42. ;; screen with F1. Use the "desktop" services, which
  43. ;; include the X11 log-in service, networking with Wicd,
  44. ;; and more.
  45. (services (cons* (gnome-desktop-service)
  46. (xfce-desktop-service)
  47. %desktop-services))
  48. ;; Allow resolution of '.local' host names with mDNS.
  49. (name-service-switch %mdns-host-lookup-nss))