feat: add geary module

This commit is contained in:
Dmitriy Kholkin 2025-06-07 21:35:36 +03:00
parent d4c1fd085b
commit 961bf3a7c5
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2

View File

@ -0,0 +1,33 @@
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.ataraxia.programs.geary;
in
{
options.ataraxia.programs.geary = {
enable = mkEnableOption "Enable geary program";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [ geary ];
defaultApplications.mail = {
cmd = "${pkgs.geary}/bin/geary";
desktop = "geary";
};
startupApplications = [
config.defaultApplications.mail.cmd
];
persist.state.directories = [
".config/geary"
".local/share/geary"
];
};
}