nichts/nyx/homes/notashelf/programs/graphical/apps/thunderbird/default.nix
2024-04-09 23:11:33 +02:00

53 lines
1.1 KiB
Nix

{
osConfig,
pkgs,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.meta) getExe';
inherit (osConfig) modules;
sys = modules.system;
prg = sys.programs;
in {
config = mkIf prg.thunderbird.enable {
home.packages = with pkgs; [birdtray thunderbird];
programs.thunderbird = {
enable = true;
profiles."notashelf" = {
isDefault = true;
userChrome = "";
userContent = "";
withExternalGnupg = true;
};
};
/*
systemd.user.services = {
"birdtray" = {
Install.WantedBy = ["graphical-session.target"];
Service = {
ExecStart = "${getExe' pkgs.birdtray "birdtray"}";
Restart = "always";
# runtime
RuntimeDirectory = "ags";
ProtectSystem = "strict";
ProtectHome = "read-only";
};
Unit = {
Description = "mail system tray notification icon for Thunderbird ";
After = ["graphical-session-pre.target"];
PartOf = [
"tray.target"
"graphical-session.target"
];
};
};
};
*/
};
}