blob: c0c2ff791918593f8e029458cf267c8cc2764faf (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
;; TODO before migration
;; - Change the IP address
;; - Change the domain name with the certificates
;; TODO to be useful:
;; - Switch to NginX
;; - Certificates
;; TODO after:
;; - rsync from osuosl
;; - rsync service
(use-modules (gnu))
(use-service-modules networking ssh web xorg)
(use-package-modules admin base emacs rsync screen version-control vim web)
(operating-system
(locale "en_US.utf8")
(timezone "America/New_York")
(bootloader
(bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/vda")))
(file-systems
(cons* (file-system
(mount-point "/")
(device
(uuid "b1ecb69d-4bb6-4bcf-9ab6-6a4d40c227f8"
'ext4))
(type "ext4"))
%base-file-systems))
(host-name "ftp.replicant.us")
(users (cons* (user-account
(name "gnutoo")
(comment "GNUtoo")
(group "users")
(home-directory "/home/gnutoo")
(supplementary-groups
'("wheel")))
(user-account
(name "putti")
(comment "Putti")
(group "users")
(home-directory "/home/putti")
(supplementary-groups
'("wheel")))
%base-user-accounts))
(packages
(append
(list (specification->package "nss-certs")
emacs-no-x
git
htop
rsync
screen
vim)
%base-packages))
(services
(append
(list (service openssh-service-type
(openssh-configuration
(port-number 222)
(permit-root-login #t)
(password-authentication? #f)
(challenge-response-authentication? #f)
(authorized-keys
`(("root", (local-file "keys/gnutoo.pub"), (local-file "keys/putti.pub"))
("gnutoo", (local-file "keys/gnutoo.pub"))
("putti", (local-file "keys/putti.pub"))
)
)
(use-pam? #f)))
(static-networking-service "eth0" "192.168.10.43"
#:gateway "192.168.10.1"
#:name-servers '("192.168.10.1" "192.168.10.2"))
;; (static-networking-service "eth0" "192.168.10.43"
;; #:gateway "18.4.89.1"
;; #:name-servers '("209.51.188.16" "209.51.188.27"))
;;
;; Nginx has more of its configuration available through GuiX than apache
(service nginx-service-type
(nginx-configuration
(server-blocks
(list (nginx-server-configuration
(listen '("80"))
(server-name '("ftp.replicant.cyberdimension.org"))
(root "/srv/ftp/"))
)
)
)
)
)
%base-services)))
|