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