desktop.tmpl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. ;; Use the UEFI variant of GRUB with the EFI System
  12. ;; Partition mounted on /boot/efi.
  13. (bootloader (bootloader-configuration
  14. (bootloader grub-efi-bootloader)
  15. (target "/boot/efi")))
  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 (append
  24. (list (file-system
  25. (device (file-system-label "my-root"))
  26. (mount-point "/")
  27. (type "ext4")
  28. (dependencies mapped-devices))
  29. (file-system
  30. (device (uuid "1234-ABCD" 'fat))
  31. (mount-point "/boot/efi")
  32. (type "vfat")))
  33. %base-file-systems))
  34. (users (cons (user-account
  35. (name "bob")
  36. (comment "Alice's brother")
  37. (group "users")
  38. (supplementary-groups '("wheel" "netdev"
  39. "audio" "video"))
  40. (home-directory "/home/bob"))
  41. %base-user-accounts))
  42. ;; This is where we specify system-wide packages.
  43. (packages (append (list
  44. ;; for HTTPS access
  45. nss-certs
  46. ;; for user mounts
  47. gvfs)
  48. %base-packages))
  49. ;; Add GNOME and/or Xfce---we can choose at the log-in
  50. ;; screen with F1. Use the "desktop" services, which
  51. ;; include the X11 log-in service, networking with
  52. ;; NetworkManager, and more.
  53. (services (append (list (gnome-desktop-service)
  54. (xfce-desktop-service))
  55. %desktop-services))
  56. ;; Allow resolution of '.local' host names with mDNS.
  57. (name-service-switch %mdns-host-lookup-nss))