diff options
Diffstat (limited to 'ftp.replicant.us.scm')
| -rw-r--r-- | ftp.replicant.us.scm | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/ftp.replicant.us.scm b/ftp.replicant.us.scm new file mode 100644 index 0000000..c0c2ff7 --- /dev/null +++ b/ftp.replicant.us.scm @@ -0,0 +1,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))) |
