Thunderbird
This commit is contained in:
parent
796a3c5445
commit
d6003fd8ab
2 changed files with 35 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ in
|
|||
prismlauncher.enable = osConfig.custom.presets.gaming.enable;
|
||||
bottles.enable = osConfig.custom.presets.wayland.enable;
|
||||
nextcloud-client.enable = osConfig.custom.presets.wayland.enable;
|
||||
thunderbird.enable = osConfig.custom.presets.wayland.enable;
|
||||
};
|
||||
};
|
||||
home = {
|
||||
|
|
|
|||
34
modules/home/programs/thunderbird/default.nix
Normal file
34
modules/home/programs/thunderbird/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
namespace,
|
||||
system,
|
||||
target,
|
||||
format,
|
||||
virtual,
|
||||
systems,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace}; let
|
||||
cfg = config.${namespace}.programs.thunderbird;
|
||||
impermanence = config.${namespace}.impermanence;
|
||||
in {
|
||||
options.${namespace}.programs.thunderbird = with types; {
|
||||
enable = mkBoolOpt false "Enable Thunderbird";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [thunderbird];
|
||||
home.persistence = mkIf impermanence.enable {
|
||||
"${impermanence.persistentStorage}".directories = [
|
||||
{
|
||||
directory = ".thunderbird";
|
||||
method = "symlink";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue