-
Notifications
You must be signed in to change notification settings - Fork 1
/
server.scm
30 lines (26 loc) · 993 Bytes
/
server.scm
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
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules bootloaders ssh)
(define %)
(operating-system
(host-name "crafter-chat")
(timezone "Etc/UTC")
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(targets '("/dev/vda"))
(terminal-outputs '(console))))
(file-systems (cons (file-system
(mount-point "/")
(device "/dev/vda1")
(type "ext4"))
%base-file-systems))
(services
(append (list (service dhcp-client-service-type)
(service openssh-service-type
(openssh-configuration
(openssh openssh-sans-x)
(password-authentication? #f)
(permit-root-login #t)
(authorized-keys
`(("root" ,(local-file "id_rsa.pub")))))))
%base-services)))