bare-bones.tmpl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ;; This is an operating system configuration template
  2. ;; for a "bare bones" setup, with no X11 display server.
  3. (use-modules (gnu))
  4. (use-service-modules networking ssh)
  5. (use-package-modules screen ssh)
  6. (operating-system
  7. (host-name "komputilo")
  8. (timezone "Europe/Berlin")
  9. (locale "en_US.utf8")
  10. ;; Assuming /dev/sdX is the target hard disk, and "my-root" is
  11. ;; the label of the target root file system.
  12. (bootloader (bootloader-configuration
  13. (bootloader grub-bootloader)
  14. (target "/dev/sdX")))
  15. (file-systems (cons (file-system
  16. (device "my-root")
  17. (title 'label)
  18. (mount-point "/")
  19. (type "ext4"))
  20. %base-file-systems))
  21. ;; This is where user accounts are specified. The "root"
  22. ;; account is implicit, and is initially created with the
  23. ;; empty password.
  24. (users (cons (user-account
  25. (name "alice")
  26. (comment "Bob's sister")
  27. (group "users")
  28. ;; Adding the account to the "wheel" group
  29. ;; makes it a sudoer. Adding it to "audio"
  30. ;; and "video" allows the user to play sound
  31. ;; and access the webcam.
  32. (supplementary-groups '("wheel"
  33. "audio" "video"))
  34. (home-directory "/home/alice"))
  35. %base-user-accounts))
  36. ;; Globally-installed packages.
  37. (packages (cons* screen openssh %base-packages))
  38. ;; Add services to the baseline: a DHCP client and
  39. ;; an SSH server.
  40. (services (cons* (dhcp-client-service)
  41. (service openssh-service-type
  42. (openssh-configuration
  43. (port-number 2222)))
  44. %base-services)))