1

fix nesting bug

This commit is contained in:
2022-11-09 23:17:19 +01:00
parent cdba4ffcc1
commit 835aca551b

View File

@ -23,6 +23,16 @@ in {
# TODO: Add Maildir to nextcloud sync # TODO: Add Maildir to nextcloud sync
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; builtins.concatLists [
(optionals cfg.kmail.enable [ kmail ])
];
home.file = mkMerge [
(optionalAttrs cfg.kmail.autostart {
".config/autostart/org.kde.kmail2.desktop".source = mkIf cfg.kmail.autostart ../../config/autostart/org.kde.kmail2.desktop;
})
];
programs = { programs = {
mbsync.enable = true; # isync package mbsync.enable = true; # isync package
msmtp.enable = true; msmtp.enable = true;
@ -34,18 +44,8 @@ in {
preNew = "mbsync --all"; preNew = "mbsync --all";
}; };
}; };
home.packages = with pkgs; builtins.concatLists [
(optionals cfg.kmail.enable [ kmail ])
];
}; };
home.file = mkMerge [
(optionalAttrs cfg.kmail.autostart {
".config/autostart/org.kde.kmail2.desktop".source = mkIf cfg.kmail.autostart ../../config/autostart/org.kde.kmail2.desktop;
})
];
# TODO: imapnotify can't parse the configuration, HM bug? # TODO: imapnotify can't parse the configuration, HM bug?
services.imapnotify.enable = true; services.imapnotify.enable = true;