lightweight-desktop.tmpl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 (append
  19. (list (file-system
  20. (device (file-system-label "my-root"))
  21. (mount-point "/")
  22. (type "ext4"))
  23. (file-system
  24. (device (uuid "1234-ABCD" 'fat))
  25. (mount-point "/boot/efi")
  26. (type "vfat")))
  27. %base-file-systems))
  28. (users (cons (user-account
  29. (name "alice")
  30. (comment "Bob's sister")
  31. (group "users")
  32. (supplementary-groups '("wheel" "netdev"
  33. "audio" "video"))
  34. (home-directory "/home/alice"))
  35. %base-user-accounts))
  36. ;; Add a bunch of window managers; we can choose one at
  37. ;; the log-in screen with F1.
  38. (packages (append (list
  39. ;; window managers
  40. ratpoison i3-wm i3status dmenu
  41. ;; for HTTPS access
  42. nss-certs)
  43. %base-packages))
  44. ;; Use the "desktop" services, which include the X11
  45. ;; log-in service, networking with NetworkManager, and more.
  46. (services %desktop-services)
  47. ;; Allow resolution of '.local' host names with mDNS.
  48. (name-service-switch %mdns-host-lookup-nss))