lightweight-desktop.tmpl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ;; This is an operating system configuration template
  2. ;; for a "desktop" setup without full-blown desktop
  3. ;; environments.
  4. (use-modules (gnu) (gnu system nss))
  5. (use-service-modules desktop)
  6. (use-package-modules bootloaders certs ratpoison suckless wm)
  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. ;; Assume the target root file system is labelled "my-root",
  17. ;; and the EFI System Partition has UUID 1234-ABCD.
  18. (file-systems (cons* (file-system
  19. (device "my-root")
  20. (title 'label)
  21. (mount-point "/")
  22. (type "ext4"))
  23. (file-system
  24. (device (uuid "1234-ABCD" 'fat))
  25. (title 'uuid)
  26. (mount-point "/boot/efi")
  27. (type "vfat"))
  28. %base-file-systems))
  29. (users (cons (user-account
  30. (name "alice")
  31. (comment "Bob's sister")
  32. (group "users")
  33. (supplementary-groups '("wheel" "netdev"
  34. "audio" "video"))
  35. (home-directory "/home/alice"))
  36. %base-user-accounts))
  37. ;; Add a bunch of window managers; we can choose one at
  38. ;; the log-in screen with F1.
  39. (packages (cons* ratpoison i3-wm i3status dmenu ;window managers
  40. nss-certs ;for HTTPS access
  41. %base-packages))
  42. ;; Use the "desktop" services, which include the X11
  43. ;; log-in service, networking with Wicd, and more.
  44. (services %desktop-services)
  45. ;; Allow resolution of '.local' host names with mDNS.
  46. (name-service-switch %mdns-host-lookup-nss))