summaryrefslogtreecommitdiff
path: root/takemi.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2020-07-11 11:57:15 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2020-07-11 11:57:15 -0400
commit478fdd3c9d2a754a52eb31b5586f6f3f50df982e (patch)
tree71e8f1fa38336e6002e46d2fd9eaba2b02fbbdb8 /takemi.scm
parent396269d0f945f27c9c069767c209b02a2017b959 (diff)
Add takemi config.
Diffstat (limited to 'takemi.scm')
-rw-r--r--takemi.scm58
1 files changed, 58 insertions, 0 deletions
diff --git a/takemi.scm b/takemi.scm
new file mode 100644
index 0000000..0f860fc
--- /dev/null
+++ b/takemi.scm
@@ -0,0 +1,58 @@
+(use-modules (gnu))
+(use-service-modules desktop networking ssh xorg)
+
+(define takemi-os
+ (operating-system
+ (locale "en_US.utf8")
+ (timezone "America/New_York")
+ (keyboard-layout (keyboard-layout "us"))
+ (host-name "takemi")
+ (users (cons* (user-account
+ (name "dave")
+ (comment "David Thompson")
+ (group "users")
+ (home-directory "/home/dave")
+ (supplementary-groups
+ '("wheel" "netdev" "audio" "video")))
+ %base-user-accounts))
+ (sudoers-file
+ (plain-file "sudoers"
+ (string-append (plain-file-content %sudoers-specification)
+ "dave ALL = NOPASSWD: ALL\n")))
+ (packages
+ (append
+ (list (specification->package "nss-certs"))
+ %base-packages))
+ (services
+ (append
+ (list (service openssh-service-type
+ (openssh-configuration
+ (password-authentication? #f)
+ (authorized-keys
+ `(("dave" ,(local-file "dave.pub"))))))
+ (service dhcp-client-service-type))
+ %base-services))
+ (bootloader
+ (bootloader-configuration
+ (bootloader grub-bootloader)
+ (target "/dev/vda")
+ (keyboard-layout keyboard-layout)))
+ (initrd-modules
+ (append '("virtio_scsi") %base-initrd-modules))
+ (swap-devices (list "/dev/vda2"))
+ (file-systems
+ (cons* (file-system
+ (mount-point "/")
+ (device
+ (uuid "f99d3ff5-57ea-4b20-bca7-bc2d58b4c364"
+ 'ext4))
+ (type "ext4"))
+ %base-file-systems))))
+
+(list (machine
+ (operating-system takemi-os)
+ (environment managed-host-environment-type)
+ (configuration (machine-ssh-configuration
+ (host-name "64.225.6.170")
+ (system "x86_64-linux")
+ (user "dave")))))