From 22a1808a77b91537d05dcd7cd43657a32acf546f Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Wed, 28 Aug 2024 17:21:20 +0200 Subject: refactor(id1000): implement dovecot in user module --- systems/ayase.scm | 6 +- systems/izumi/izumi.org | 128 ++++++-------------------------- systems/izumi/system-configuration.scm | 128 ++++++-------------------------- users/id1000.scm | 131 ++++++++++++++++++++++++++++++++- 4 files changed, 172 insertions(+), 221 deletions(-) diff --git a/systems/ayase.scm b/systems/ayase.scm index 85142ea..aef4771 100644 --- a/systems/ayase.scm +++ b/systems/ayase.scm @@ -72,8 +72,6 @@ "-swap" number))) -;;; - ;; # (define home-services (service guix-home-service-type @@ -109,7 +107,9 @@ ;; (list #) (define services (append %distribution-services - (list home-services) + (list ;; (@ (users id1000) + ;; dovecot) + home-services) system-services)) ;; (list #) diff --git a/systems/izumi/izumi.org b/systems/izumi/izumi.org index 779e899..5048634 100644 --- a/systems/izumi/izumi.org +++ b/systems/izumi/izumi.org @@ -390,92 +390,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 - "