aboutsummaryrefslogtreecommitdiff
path: root/gn/deploy/octopus.scm
diff options
context:
space:
mode:
authorEfraim Flashner2020-11-26 17:59:09 +0200
committerEfraim Flashner2020-11-26 17:59:18 +0200
commit16aeca47b1c3b9a6cbede7ab78945bbbf1aebf5e (patch)
tree308b22d7039bd77fda92c3c36eadc7e14f8b5abf /gn/deploy/octopus.scm
parentd142bda43b7926aa50433a8cfac22b54593904c1 (diff)
downloadguix-bioinformatics-16aeca47b1c3b9a6cbede7ab78945bbbf1aebf5e.tar.gz
octopus: Add munge service, initial octopus OS config
Diffstat (limited to 'gn/deploy/octopus.scm')
-rw-r--r--gn/deploy/octopus.scm82
1 files changed, 82 insertions, 0 deletions
diff --git a/gn/deploy/octopus.scm b/gn/deploy/octopus.scm
new file mode 100644
index 0000000..f707462
--- /dev/null
+++ b/gn/deploy/octopus.scm
@@ -0,0 +1,82 @@
+(define-module (gn deploy octopus))
+
+(use-modules (gnu)
+ (gn services science)
+ )
+(use-service-modules ssh web)
+(use-package-modules certs tmux screen vim)
+
+(operating-system
+ (host-name "octopus")
+ (timezone "Etc/UTC")
+ (locale "en_US.utf8")
+
+ (bootloader (bootloader-configuration
+ (bootloader grub-bootloader)
+ (target "/dev/sda")
+ (terminal-outputs '(console serial))))
+ (kernel-arguments '("console=tty1" "console=ttyS0,115200n8"))
+
+ (file-systems
+ (append (list
+ (file-system
+ (device "/dev/sda3")
+ (mount-point "/")
+ (type "ext4")
+ (options "errors=remount-ro"))
+ ;(file-system
+ ; (device "/dev/sdb1")
+ ; (mount-point "/mnt/sdb1")
+ ; (type "xfs")
+ ; (flags '(no-exec no-dev no-atime))
+ ; (options "rw,nodiratime,largeio,inode64")
+ ; (create-mount-point? #t))
+ ;(file-system
+ ; (device "octopus01:/home")
+ ; (mount-point "/home")
+ ; (type "nfs"))
+ )
+ %base-file-systems))
+
+ (swap-devices '("/dev/sda2"))
+ ;; No firmware needed
+ (firmware '())
+
+ (users (cons*
+ (user-account
+ (name "efraimf")
+ (comment "Efraim Flashner")
+ (uid 1000)
+ (group "users")
+ (supplementary-groups '("wheel")))
+ (user-account
+ (name "wrk")
+ (comment "Pjotr Prins")
+ (uid 502)
+ (group "users")
+ (supplementary-groups '("wheel")))
+ %base-user-accounts))
+
+
+ (packages (cons*
+ nss-certs
+ screen
+ tmux
+ vim
+ %base-packages))
+
+ (services
+ (append (list
+ ;; This conflicts with everything when testing in a VM.
+ ;(agetty-service
+ ; (agetty-configuration
+ ; (extra-options '("-L"))
+ ; (baud-rate "115200")
+ ; (term "vt100")
+ ; (tty "ttyS0")))
+
+ (service openssh-service-type)
+
+ (service munge-service-type)
+ )
+ %base-services)))