summaryrefslogtreecommitdiff
path: root/takemi.scm
blob: 0f860fcb5d663c7a00de1fab4a0b7645519e978e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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")))))