lightweight-desktop.tmpl 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 emacs emacs-xyz ratpoison suckless wm
  7. xorg)
  8. (operating-system
  9. (host-name "antelope")
  10. (timezone "Europe/Paris")
  11. (locale "en_US.utf8")
  12. ;; Use the UEFI variant of GRUB with the EFI System
  13. ;; Partition mounted on /boot/efi.
  14. (bootloader (bootloader-configuration
  15. (bootloader grub-efi-bootloader)
  16. (targets '("/boot/efi"))))
  17. ;; Assume the target root file system is labelled "my-root",
  18. ;; and the EFI System Partition has UUID 1234-ABCD.
  19. (file-systems (append
  20. (list (file-system
  21. (device (file-system-label "my-root"))
  22. (mount-point "/")
  23. (type "ext4"))
  24. (file-system
  25. (device (uuid "1234-ABCD" 'fat))
  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. %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. emacs emacs-exwm emacs-desktop-environment
  42. ;; terminal emulator
  43. xterm
  44. ;; for HTTPS access
  45. nss-certs)
  46. %base-packages))
  47. ;; Use the "desktop" services, which include the X11
  48. ;; log-in service, networking with NetworkManager, and more.
  49. (services %desktop-services)
  50. ;; Allow resolution of '.local' host names with mDNS.
  51. (name-service-switch %mdns-host-lookup-nss))