1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 17:19:45 +01:00

himalaya: adjust code for v1.0.0-beta.3

This commit is contained in:
Clément DOUIN 2024-03-08 13:58:55 +01:00 committed by GitHub
parent 0c65bfa3cf
commit 417015af0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -169,7 +169,7 @@ in {
config.accounts.email.accounts;
accountsConfig = lib.mapAttrs mkAccountConfig enabledAccounts;
globalConfig = compactAttrs himalaya.settings;
allConfig = globalConfig // accountsConfig;
allConfig = globalConfig // { accounts = accountsConfig; };
in tomlFormat.generate "himalaya-config.toml" allConfig;
systemd.user.services = let
inherit (config.services.himalaya-watch) enable environment settings;

View file

@ -1,32 +1,32 @@
["hm@example.com"]
[accounts."hm@example.com"]
backend = "imap"
default = true
display-name = "H. M. Test"
email = "hm@example.com"
["hm@example.com".folder.alias]
[accounts."hm@example.com".folder.alias]
drafts = "Drafts"
inbox = "Inbox"
sent = "Sent"
trash = "Trash"
["hm@example.com".imap]
[accounts."hm@example.com".imap]
encryption = "tls"
host = "imap.example.com"
login = "home.manager"
port = 993
["hm@example.com".imap.passwd]
[accounts."hm@example.com".imap.passwd]
cmd = "password-command"
["hm@example.com".message.send]
[accounts."hm@example.com".message.send]
backend = "smtp"
["hm@example.com".smtp]
[accounts."hm@example.com".smtp]
encryption = "tls"
host = "smtp.example.com"
login = "home.manager"
port = 465
["hm@example.com".smtp.passwd]
[accounts."hm@example.com".smtp.passwd]
cmd = "password-command"