aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/guix/system.scm41
1 files changed, 39 insertions, 2 deletions
diff --git a/src/guix/system.scm b/src/guix/system.scm
index adb9a7d..8105e95 100644
--- a/src/guix/system.scm
+++ b/src/guix/system.scm
@@ -55,7 +55,25 @@
(timezone "America/Sao_Paulo")
(host-name +tld+)
(skeletons pkg:skeletons)
- (users (append (pkg:user-accounts +users+) %base-user-accounts))
+ (users
+ (append
+ (pkg:user-accounts +users+)
+ (list
+ (user-account
+ (name "pijul")
+ (group "pijul")
+ (system? #t)
+ (comment "Pijul SSH user")
+ (home-directory "/srv/pijul")
+ (create-home-directory? #t)))
+ %base-user-accounts))
+ (groups
+ (append
+ (list
+ (user-group
+ (name "pijul")
+ (system? #t)))
+ %base-groups))
(sudoers-file pkg:syskeep-sudoers-file)
(packages (pkg:package-set package-symbols package-records))
(services
@@ -67,7 +85,9 @@
(q:knot-zones-configuration +tld+ +ipv4+ +ipv6+))
(service openssh-service-type
(q:openssh-default-configuration
- (pkg:users->keys +users+)))
+ (append
+ (pkg:users->keys +users+)
+ `(("pijul" ,(plain-file "pijul-andreh-id_rsa.pub" (pkg:slurp (path "src/keys/SSH/andreh.pub.txt"))))))))
(service certbot-service-type
(q:tld-certbot-configuration +tld+))
(service nginx-service-type
@@ -147,6 +167,23 @@
charset utf-8;
autoindex on;
add_header Strict-Transport-Security 'max-age=31536000; includeSubdomains' always;
+ types {
+ text/html html;
+ text/css css;
+ text/javascript mjs;
+ text/xml xml;
+ text/plain txt;
+ application/atom+xml atom;
+ application/gzip gz;
+ application/pdf pdf;
+ application/x-bittorrent torrent;
+ image/vnd.microsoft.icon ico;
+ image/png png;
+ image/svg+xml svg;
+ audio/flac flac;
+ audio/ogg ogg;
+ video/webm webm;
+ }
"#)))))))
(service cgit-service-type q:cgit-pre-configuration)
(service pkg:syskeep-service-type