feat: add thunderbird module
This commit is contained in:
parent
a5bedcc3cc
commit
d6a67b16a2
38
modules/home/applications/thunderbird.nix
Normal file
38
modules/home/applications/thunderbird.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) getExe mkEnableOption mkIf;
|
||||
cfg = config.ataraxia.programs.thunderbird;
|
||||
username = config.home.username;
|
||||
in
|
||||
{
|
||||
options.ataraxia.programs.thunderbird = {
|
||||
enable = mkEnableOption "Enable thunderbird program";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.thunderbird = {
|
||||
enable = true;
|
||||
profiles.${username} = {
|
||||
isDefault = true;
|
||||
withExternalGnupg = true;
|
||||
};
|
||||
};
|
||||
|
||||
defaultApplications.mail = {
|
||||
cmd = getExe config.programs.thunderbird.package;
|
||||
desktop = "thunderbird";
|
||||
};
|
||||
|
||||
startupApplications = [
|
||||
config.defaultApplications.mail.cmd
|
||||
];
|
||||
|
||||
persist.state.directories = [
|
||||
".thunderbird/${username}"
|
||||
];
|
||||
};
|
||||
}
|
@ -83,6 +83,7 @@ in
|
||||
ataraxia.programs.kitty.enable = mkDefault true;
|
||||
ataraxia.programs.mpv.enable = mkDefault true;
|
||||
ataraxia.programs.rofi.enable = mkDefault true;
|
||||
ataraxia.programs.thunderbird.enable = mkDefault true;
|
||||
ataraxia.programs.vscode.enable = mkDefault true;
|
||||
ataraxia.wayland.enable = mkDefault true;
|
||||
ataraxia.wayland.hyprland.enable = mkDefault true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user