Advertisement
Guest User

Untitled

a guest
Feb 13th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1.  
  2. ;; This is an operating system configuration template for a "Docker image" setup.
  3.  
  4. ;; stolen from guix tarball
  5. ;;'gnu/system/examples/docker-image.tmpl'
  6.  
  7. (use-modules (gnu)
  8. ;(guix)
  9. ;(srfi srfi-1)
  10. )
  11.  
  12. ;(use-service-modules ;desktop
  13. ;networking
  14. ; ssh
  15. ;xorg
  16. ; )
  17.  
  18. (use-package-modules ;bootloaders
  19. ;certs
  20. ;fonts
  21. ;nvi
  22. ;package-management
  23. ;hello
  24. wget
  25. ;xorg
  26. )
  27.  
  28. (display "base packages:")
  29. (display %base-packages)
  30. (newline)
  31. (display "wget:")
  32. (display wget)
  33. (newline)
  34.  
  35. (operating-system
  36. (host-name "gorilla")
  37. ;(timezone "Europe/Berlin")
  38. (timezone "Etc/UTC")
  39. (locale "en_US.utf8")
  40. ;; This is where user accounts are specified. The "root" account is
  41. ;; implicit, and is initially created with the empty password.
  42. (users (cons (user-account
  43. (name "pink")
  44. (comment "pink at gorilla")
  45. (group "users")
  46. (supplementary-groups '("wheel"
  47. "audio"
  48. "video")))
  49. %base-user-accounts))
  50.  
  51. ;; Globally-installed packages.
  52.  
  53. ;(packages %base-packages)
  54. (packages (append (list
  55. wget
  56. )
  57. %base-packages))
  58.  
  59. ;; Because the system will run in a Docker container, we may omit many
  60. ;; things that would normally be required in an operating system
  61. ;; configuration file. These things include:
  62. ;;
  63. ;; * bootloader
  64. ;; * file-systems
  65. ;; * services such as mingetty, udevd, slim, networking, dhcp
  66. ;;
  67. ;; Either these things are simply not required, or Docker provides
  68. ;; similar services for us.
  69.  
  70. ;; This will be ignored.
  71. (bootloader (bootloader-configuration
  72. (bootloader grub-bootloader)
  73. (target "does-not-matter")))
  74.  
  75. ;; This will be ignored, too.
  76. (file-systems (list (file-system
  77. (device "does-not-matter")
  78. (mount-point "/")
  79. (type "does-not-matter"))))
  80.  
  81.  
  82.  
  83.  
  84. ;; Guix is all you need!
  85. (services (list (service guix-service-type)
  86.  
  87. ;; Uncomment the line below to add an SSH server.
  88. ;(service openssh-service-type)
  89.  
  90. ;;, maybe then add a 'nginx-service-type' to its services field.
  91. ))
  92.  
  93. ; end of os
  94. )
  95.  
  96.  
  97.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement