From 478fdd3c9d2a754a52eb31b5586f6f3f50df982e Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 11 Jul 2020 11:57:15 -0400 Subject: Add takemi config. --- takemi.scm | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 takemi.scm (limited to 'takemi.scm') 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"))))) -- cgit v1.2.3