diff --git a/oni/home/config/rincewind.scm b/oni/home/config/rincewind.scm index afaaaf1..b026bad 100644 --- a/oni/home/config/rincewind.scm +++ b/oni/home/config/rincewind.scm @@ -1,8 +1,13 @@ (define-module (oni home config rincewind) - #:use-module ((gnu home services guix) - #:select (home-channels-service-type)) #:use-module ((gnu home) #:select (home-environment)) + #:use-module ((gnu home services mail) + #:select (home-msmtp-service-type + home-msmtp-configuration + msmtp-configuration + msmtp-account)) + #:use-module ((gnu home services guix) + #:select (home-channels-service-type)) #:use-module ((gnu packages certs) #:select (nss-certs)) #:use-module ((gnu packages cdrom) @@ -487,4 +492,32 @@ ".mbsyncstate.journal" ".mbsyncstate.new")))) (service home-autokey-service-type) - (service home-copyq-service-type)))) + (service home-copyq-service-type) + + (service home-msmtp-service-type + (home-msmtp-configuration + (defaults (msmtp-configuration + (auth? #t) + (tls? #t) + (tls-starttls? #t) + (port 587))) + (accounts + (list (msmtp-account + (name "gmail") + ;; Use `secret-tool store --label=msmtp host smtp.gmail.com + ;; service smtp user ryuslash@gmail.com' to store the + ;; password. + (configuration (msmtp-configuration + (host "smtp.gmail.com") + (from "ryuslash@gmail.com") + (user "ryuslash@gmail.com")))) + (msmtp-account + (name "ryuslash") + ;; Use `secret-tool store --label=msmtp host + ;; smtp-ryuslash.alwaysdata.net service smtp user + ;; tom@ryuslash.org' to store the password. + (configuration (msmtp-configuration + (host "smtp-ryuslash.alwaysdata.net") + (from "tom@ryuslash.org") + (user "tom@ryuslash.org")))))) + (default-account "ryuslash"))))))