rekahsoft
/
guix-config
Archived
1
1
Fork 0

guix-oci.scm: Test container deployment with guix

Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
This commit is contained in:
Collin J. Doering 2019-09-04 16:39:44 -04:00
parent 1f4fb75fa9
commit ed9be42ff1
Signed by: rekahsoft
GPG Key ID: 7B4DEB93212B3022
1 changed files with 49 additions and 0 deletions

49
guix-oci.scm Normal file
View File

@ -0,0 +1,49 @@
;; This is an operating system configuration template
;; for a "bare bones" setup, with no X11 display server.
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules python)
(operating-system
(host-name "antelope")
(timezone "America/Toronto")
(locale "en_US.utf8")
;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
;; target hard disk, and "my-root" is the label of the target
;; root file system.
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sdX")))
;; (file-systems (cons* (file-system
;; (device (file-system-label "my-root"))
;; (mount-point "/")
;; (type "ext4"))
;; %container-file-systems))
(file-systems %container-file-systems)
;; This is where user accounts are specified. The "root"
;; account is implicit, and is initially created with the
;; empty password.
(users (cons (user-account
(name "python")
(comment "Python application user")
(group "users")
;; (supplementary-groups '(""))
(home-directory "/home/python"))
%base-user-accounts))
;; Globally-installed packages.
(packages (cons python-wrapper
%base-packages))
;; Add services to the baseline: a DHCP client and
;; an SSH server.
(services (append (list (service dhcp-client-service-type)
(service openssh-service-type
(openssh-configuration
(port-number 2222))))
%base-services)))