1

autostart kmail

This commit is contained in:
2022-11-09 23:15:53 +01:00
parent c4763759b9
commit 2896544864
2 changed files with 22 additions and 0 deletions

View File

@ -40,6 +40,12 @@ in rec {
email = { email = {
enable = true; enable = true;
# Use kmail as viewer for stuff synced by mbsync
kmail = {
enable = true;
autostart = true;
};
}; };
firefox = { firefox = {

View File

@ -2,6 +2,8 @@
# Example: https://sbr.pm/configurations/mails.html # Example: https://sbr.pm/configurations/mails.html
# NOTE: The passwords must exist in kwallet # NOTE: The passwords must exist in kwallet
# TODO: Emacs mail config
{ config, nixosConfig, lib, mylib, pkgs, ... }: { config, nixosConfig, lib, mylib, pkgs, ... }:
with lib; with lib;
@ -13,6 +15,10 @@ in {
options.modules.email = { options.modules.email = {
enable = mkEnableOpt "Email"; enable = mkEnableOpt "Email";
kmail = {
enable = mkEnableOpt "Kmail";
autostart = mkEnableOpt "Autostart Kmail";
};
}; };
# TODO: Add Maildir to nextcloud sync # TODO: Add Maildir to nextcloud sync
@ -28,8 +34,18 @@ 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;