feat: add geary module
This commit is contained in:
parent
d4c1fd085b
commit
961bf3a7c5
33
modules/home/applications/geary.nix
Normal file
33
modules/home/applications/geary.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user