spacepaste

  1.  
  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 admin)
  7. (operating-system
  8. (host-name "komputilo")
  9. (timezone "Europe/Berlin")
  10. (locale "en_US.UTF-8")
  11. ;; Assuming /dev/sdX is the target hard disk, and "my-root" is
  12. ;; the label of the target root file system.
  13. (bootloader (grub-configuration (device "/dev/sdX")))
  14. (file-systems (cons (file-system
  15. (device "my-root")
  16. (title 'label)
  17. (mount-point "/")
  18. (type "ext4"))
  19. %base-file-systems))
  20. ;; This is where user accounts are specified. The "root"
  21. ;; account is implicit, and is initially created with the
  22. ;; empty password.
  23. (users (cons (user-account
  24. (name "alice")
  25. (comment "Bob's sister")
  26. (group "users")
  27. ;; Adding the account to the "wheel" group
  28. ;; makes it a sudoer. Adding it to "audio"
  29. ;; and "video" allows the user to play sound
  30. ;; and access the webcam.
  31. (supplementary-groups '("wheel"
  32. "audio" "video"))
  33. (home-directory "/home/alice"))
  34. %base-user-accounts))
  35. ;; Globally-installed packages.
  36. (packages (cons tcpdump %base-packages))
  37. ;; Add services to the baseline: a DHCP client and
  38. ;; an SSH server.
  39. (services (cons* (dhcp-client-service)
  40. (lsh-service #:port-number 2222)
  41. %base-services)))
  42.