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. --- dave.pub | 1 + takemi.scm | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 dave.pub create mode 100644 takemi.scm diff --git a/dave.pub b/dave.pub new file mode 100644 index 0000000..3b6c8d9 --- /dev/null +++ b/dave.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCdmBovaM1lA1DgJPr8X1gBZWB5pBOhbQwgRmdC5JK0VfeEld7zNhOPwRTxL61Ak9WI/EmvkhQNrvDQotOJXj59JmIvHWK7Ldqan3uXmHWR7Hi8xIgQWxTCXHZ68Xx6AdPBo9d49IkdEfH39BaQ///cqwHrZlm0ayCUDiRZI/gXp5vC1I3xsTdNk7GrfCbxKyN3m9XwMbTtAb0d5F9Z9FqDJUidsb6ND8fl2GnZWhb9geofXK88gC9bdUCf39uPLuZpUVUiL89/IG+AFT8mhfyqIb6v7J98wN3yfsv9HnySXPoqa30uO2SDVs5hl7BOvfhguzVD2k51LTPgrkpDirBmsSD5oxCgO+rVmMucZ7Nm/s5HGXGjbfC9zPQ+8PHDK7tyoIqaPQrvNVGQ3yTzy2oY7x9wOrCW8Le/GVfNQPz+QxGk9T3Lm4vLqpjWzeWbtx5M5u8PNoXZhwaKKLLY3kwcGvEVQIgIPY0/KRqlEFvfurQRi0yZS9iBNOaCa8GbekB2nawBQNdwyFs0EdSmb27OZLpDk2bbvuSMwGuGovT5aomjQ4uzgeoS1af01mtviyW/w380HhIytIiRIUiF0BxIBvasbjFl2XrbIv4IO4Im2zFtG/e0UNm6cUk27grXFo2QNnyFE0FifpXXk1ILs+KDINq4rOMf5cB9lYMHlUo3Yw== dthompson@DT-ThinkPad-X1-Carbon-6th 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