docker-image.tmpl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ;; This is an operating system configuration template for a "Docker image"
  2. ;; setup, so it has barely any services at all.
  3. (use-modules (gnu))
  4. (operating-system
  5. (host-name "komputilo")
  6. (timezone "Europe/Berlin")
  7. (locale "en_US.utf8")
  8. ;; This is where user accounts are specified. The "root" account is
  9. ;; implicit, and is initially created with the empty password.
  10. (users (cons (user-account
  11. (name "alice")
  12. (comment "Bob's sister")
  13. (group "users")
  14. (supplementary-groups '("wheel"
  15. "audio" "video")))
  16. %base-user-accounts))
  17. ;; Globally-installed packages.
  18. (packages %base-packages)
  19. ;; Because the system will run in a Docker container, we may omit many
  20. ;; things that would normally be required in an operating system
  21. ;; configuration file. These things include:
  22. ;;
  23. ;; * bootloader
  24. ;; * file-systems
  25. ;; * services such as mingetty, udevd, slim, networking, dhcp
  26. ;;
  27. ;; Either these things are simply not required, or Docker provides
  28. ;; similar services for us.
  29. ;; This will be ignored.
  30. (bootloader (bootloader-configuration
  31. (bootloader grub-bootloader)
  32. (target "does-not-matter")))
  33. ;; This will be ignored, too.
  34. (file-systems (list (file-system
  35. (device "does-not-matter")
  36. (mount-point "/")
  37. (type "does-not-matter"))))
  38. ;; Guix is all you need!
  39. (services (list (service guix-service-type))))