lightweight-desktop.tmpl 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ;; -*- mode: scheme; -*-
  2. ;; This is an operating system configuration template
  3. ;; for a "desktop" setup without full-blown desktop
  4. ;; environments.
  5. (use-modules (gnu) (gnu system nss))
  6. (use-service-modules desktop)
  7. (use-package-modules bootloaders certs emacs emacs-xyz ratpoison suckless wm
  8. xorg)
  9. (operating-system
  10. (host-name "antelope")
  11. (timezone "Europe/Paris")
  12. (locale "en_US.utf8")
  13. ;; Use the UEFI variant of GRUB with the EFI System
  14. ;; Partition mounted on /boot/efi.
  15. (bootloader (bootloader-configuration
  16. (bootloader grub-efi-bootloader)
  17. (targets '("/boot/efi"))))
  18. ;; Assume the target root file system is labelled "my-root",
  19. ;; and the EFI System Partition has UUID 1234-ABCD.
  20. (file-systems (append
  21. (list (file-system
  22. (device (file-system-label "my-root"))
  23. (mount-point "/")
  24. (type "ext4"))
  25. (file-system
  26. (device (uuid "1234-ABCD" 'fat))
  27. (mount-point "/boot/efi")
  28. (type "vfat")))
  29. %base-file-systems))
  30. (users (cons (user-account
  31. (name "alice")
  32. (comment "Bob's sister")
  33. (group "users")
  34. (supplementary-groups '("wheel" "netdev"
  35. "audio" "video")))
  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 (append (list
  40. ;; window managers
  41. ratpoison i3-wm i3status dmenu
  42. emacs emacs-exwm emacs-desktop-environment
  43. ;; terminal emulator
  44. xterm
  45. ;; for HTTPS access
  46. nss-certs)
  47. %base-packages))
  48. ;; Use the "desktop" services, which include the X11
  49. ;; log-in service, networking with NetworkManager, and more.
  50. (services %desktop-services)
  51. ;; Allow resolution of '.local' host names with mDNS.
  52. (name-service-switch %mdns-host-lookup-nss))