summaryrefslogtreecommitdiff
path: root/systems/izumi/system-configuration.scm
diff options
context:
space:
mode:
Diffstat (limited to 'systems/izumi/system-configuration.scm')
-rw-r--r--systems/izumi/system-configuration.scm128
1 files changed, 21 insertions, 107 deletions
diff --git a/systems/izumi/system-configuration.scm b/systems/izumi/system-configuration.scm
index a031235..8388bf4 100644
--- a/systems/izumi/system-configuration.scm
+++ b/systems/izumi/system-configuration.scm
@@ -380,92 +380,6 @@
( method "mofws" )
( type 'domainkeys ) ) ) ) ) ) ) ) )
-( define ( wip-imap-service domain )
- ( service dovecot-service-type
- ( dovecot-configuration
- ( disable-plaintext-auth? #t )
- ( mail-location "maildir:~/Maildir" )
- ( namespaces
- ( list
- ( namespace-configuration
- ( name "inbox" )
- ( inbox? #t )
- ( mailboxes
- ( list
- ( mailbox-configuration
- ( name "Archive" )
- ( auto "subscribe" )
- ( special-use ( list "\\Archive" ) ) )
- ( mailbox-configuration
- ( name "Drafts" )
- ( auto "subscribe" )
- ( special-use ( list "\\Drafts" ) ) )
- ( mailbox-configuration
- ( name "Junk" )
- ( auto "subscribe" )
- ( special-use ( list "\\Junk" ) ) )
- ( mailbox-configuration
- ( name "Sent" )
- ( auto "subscribe" )
- ( special-use ( list "\\Sent" ) ) )
- ( mailbox-configuration
- ( name "Trash" )
- ( auto "subscribe" )
- ( special-use ( list "\\Trash" ) ) ) ) ) ) ) )
- ( passdbs
- ( list
- ( passdb-configuration
- ( args ( list "username_format=%n" "/secrets/dovecot" ) )
- ( driver "passwd-file" ) ) ) )
- ( protocols
- ( list
- ( protocol-configuration ( name "imap" ) )
- ( protocol-configuration ( name "lmtp" ) ) ) )
- ( services
- ( list
- ( service-configuration
- ( kind "lmtp" )
- ( listeners
- ( list
- ( inet-listener-configuration
- ( address "192.168.10.2 127.0.0.1" )
- ( port 24 )
- ( protocol "lmtp" ) )
- ( unix-listener-configuration
- ( group "vmail" )
- ( mode "0666" )
- ( path "lmtp" )
- ( user "vmail" ) ) ) ) )
- ( service-configuration
- ( kind "imap-login" )
- ( listeners
- ( list
- ( inet-listener-configuration
- ( address "192.168.10.2" )
- ( port 993 )
- ( protocol "imaps" )
- ;; How does the boolean type map to
- ;; the three configuration options?
- ;; ( ssl? "required" )
- ) ) ) ) ) )
- ( ssl? "required" )
- ( ssl-cert
- ( string-append
- "</etc/letsencrypt/live/"
- domain
- "/fullchain.pem" ) )
- ( ssl-key
- ( string-append
- "</etc/letsencrypt/live/"
- domain
- "/privkey.pem" ) )
- ( ssl-min-protocol "TLSv1.2" )
- ( userdbs
- ( list
- ( userdb-configuration
- ( args ( list "gid=vmail" "home=/home/vmail/%n" "uid=vmail" ) )
- ( driver "static" ) ) ) ) ) ) )
-
( define ( wip-smtp-service interface domain )
( service opensmtpd-service-type
( opensmtpd-configuration
@@ -474,7 +388,6 @@
( define* ( wip-mail-services #:key interface domain )
( list
( wip-dkim-service domain )
- ( wip-imap-service domain )
( wip-smtp-service interface domain ) ) )
( operating-system
@@ -559,7 +472,8 @@
#:interface "enp1s0"
#:domain "marekpasnikowski.pl" )
( list
- (service (service-type (inherit certbot-service-type)
+ (@ (users id1000) dovecot-service)
+ (service (service-type (inherit certbot-service-type)
(extensions (map (lambda (extension)
(if (eq? (service-extension-target extension)
nginx-service-type)
@@ -568,24 +482,24 @@
certbot-nginx-server-configurations))
extension))
(service-type-extensions certbot-service-type))))
- ( certbot-configuration
- ( certificates
- ( list
- ( certificate-configuration
- ( deploy-hook
- ( program-file
- "nginx-deploy-hook"
- #~
- ( let
- ( ( pid ( call-with-input-file "/var/run/nginx/pid" read ) ) )
- ( kill pid SIGHUP ) ) ) )
- ( domains
- ( list
- "marekpasnikowski.pl"
- "git.marekpasnikowski.pl"
- "radicale.marekpasnikowski.pl" ) ) ) ) )
- ( email "marek@marekpasnikowski.pl" )
- ( webroot "/srv/www/marek/marekpasnikowski.pl" ) ) )
+ ( certbot-configuration
+ ( certificates
+ ( list
+ ( certificate-configuration
+ ( deploy-hook
+ ( program-file
+ "nginx-deploy-hook"
+ #~
+ ( let
+ ( ( pid ( call-with-input-file "/var/run/nginx/pid" read ) ) )
+ ( kill pid SIGHUP ) ) ) )
+ ( domains
+ ( list
+ "marekpasnikowski.pl"
+ "git.marekpasnikowski.pl"
+ "radicale.marekpasnikowski.pl" ) ) ) ) )
+ ( email "marek@marekpasnikowski.pl" )
+ ( webroot "/srv/www/marek/marekpasnikowski.pl" ) ) )
(service (service-type (inherit cgit-service-type)
(extensions (map (lambda (extension)
(if (eq? (service-extension-target extension)
@@ -637,7 +551,7 @@
( gitolite-configuration
( rc-file ( gitolite-rc-file ( umask #o0027 ) ) )
( admin-pubkey ( plain-file "gitolite-admin.pub"
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK4THTYnHCc/ihCJNKJtGTNu1zCnLndbMHnxnrxzJk+N marek@izumi\n") ) ) )
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK4THTYnHCc/ihCJNKJtGTNu1zCnLndbMHnxnrxzJk+N marek@izumi\n") ) ) )
( service gnome-desktop-service-type )
( service syncthing-service-type ( syncthing-configuration ( user "marek" ) ) )
(service nginx-service-type*