bare-bones.tmpl 1.9 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. ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
  11. ;; target hard disk, and "my-root" is the label of the target
  12. ;; root file system.
  13. (bootloader (bootloader-configuration
  14. (bootloader grub-bootloader)
  15. (target "/dev/sdX")))
  16. (file-systems (cons (file-system
  17. (device (file-system-label "my-root"))
  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. %base-user-accounts))
  35. ;; Globally-installed packages.
  36. (packages (cons screen %base-packages))
  37. ;; Add services to the baseline: a DHCP client and
  38. ;; an SSH server.
  39. (services (append (list (service dhcp-client-service-type)
  40. (service openssh-service-type
  41. (openssh-configuration
  42. (openssh openssh-sans-x)
  43. (port-number 2222))))
  44. %base-services)))