bare-bones.tmpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ;; -*- mode: scheme; -*-
  2. ;; This is an operating system configuration template
  3. ;; for a "bare bones" setup, with no X11 display server.
  4. (use-modules (gnu))
  5. (use-service-modules networking ssh)
  6. (use-package-modules screen ssh)
  7. (operating-system
  8. (host-name "komputilo")
  9. (timezone "Europe/Berlin")
  10. (locale "en_US.utf8")
  11. ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
  12. ;; target hard disk, and "my-root" is the label of the target
  13. ;; root file system.
  14. (bootloader (bootloader-configuration
  15. (bootloader grub-bootloader)
  16. (targets '("/dev/sdX"))))
  17. ;; It's fitting to support the equally bare bones ‘-nographic’
  18. ;; QEMU option, which also nicely sidesteps forcing QWERTY.
  19. (kernel-arguments (list "console=ttyS0,115200"))
  20. (file-systems (cons (file-system
  21. (device (file-system-label "my-root"))
  22. (mount-point "/")
  23. (type "ext4"))
  24. %base-file-systems))
  25. ;; This is where user accounts are specified. The "root"
  26. ;; account is implicit, and is initially created with the
  27. ;; empty password.
  28. (users (cons (user-account
  29. (name "alice")
  30. (comment "Bob's sister")
  31. (group "users")
  32. ;; Adding the account to the "wheel" group
  33. ;; makes it a sudoer. Adding it to "audio"
  34. ;; and "video" allows the user to play sound
  35. ;; and access the webcam.
  36. (supplementary-groups '("wheel"
  37. "audio" "video")))
  38. %base-user-accounts))
  39. ;; Globally-installed packages.
  40. (packages (cons screen %base-packages))
  41. ;; Add services to the baseline: a DHCP client and
  42. ;; an SSH server.
  43. (services (append (list (service dhcp-client-service-type)
  44. (service openssh-service-type
  45. (openssh-configuration
  46. (openssh openssh-sans-x)
  47. (port-number 2222))))
  48. %base-services)))