From 1278ea0985aaf8c35f568c9b5c62d6d2c0234956 Mon Sep 17 00:00:00 2001 From: smayzy Date: Fri, 11 Jul 2025 18:51:52 +0200 Subject: [PATCH] mv thunderbird to modules --- hosts/common/common.nix | 1 - modules/nix/comm/default.nix | 1 + modules/nix/comm/thunderbird.nix | 17 +++++++++++++++++ modules/nix/groups/desktop.nix | 1 + modules/nix/groups/laptop.nix | 1 + 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 modules/nix/comm/thunderbird.nix diff --git a/hosts/common/common.nix b/hosts/common/common.nix index 0d14b89..1a4b8ec 100644 --- a/hosts/common/common.nix +++ b/hosts/common/common.nix @@ -18,7 +18,6 @@ home-manager fastfetch font-awesome - thunderbird lf arduino-ide calibre diff --git a/modules/nix/comm/default.nix b/modules/nix/comm/default.nix index 4d7d868..9e7ee10 100644 --- a/modules/nix/comm/default.nix +++ b/modules/nix/comm/default.nix @@ -3,5 +3,6 @@ imports = [ ./element.nix ./webcord.nix + ./thunderbird.nix ]; } diff --git a/modules/nix/comm/thunderbird.nix b/modules/nix/comm/thunderbird.nix new file mode 100644 index 0000000..57035ed --- /dev/null +++ b/modules/nix/comm/thunderbird.nix @@ -0,0 +1,17 @@ +{ lib, config, pkgs, ... }: +let + inherit (lib) mkIf mkOption types; +in +{ + options.smayzy.thunderbird.enable = mkOption { + type = types.bool; + default = false; + description = "thunderbird"; + }; + + config = mkIf config.smayzy.thunderbird.enable { + environment.systemPackages = with pkgs; [ + thunderbird + ]; + }; +} diff --git a/modules/nix/groups/desktop.nix b/modules/nix/groups/desktop.nix index 4ac854e..e3e6138 100644 --- a/modules/nix/groups/desktop.nix +++ b/modules/nix/groups/desktop.nix @@ -26,6 +26,7 @@ in mullvad.enable = true; gui-utilities.enable = true; mouse.enable = true; + thunderbird.enable = true; }; }; } diff --git a/modules/nix/groups/laptop.nix b/modules/nix/groups/laptop.nix index 2cf3ddb..3c4b475 100644 --- a/modules/nix/groups/laptop.nix +++ b/modules/nix/groups/laptop.nix @@ -26,6 +26,7 @@ in mullvad.enable = true; gui-utilities.enable = true; mouse.enable = true; + thunderbird.enable = true; }; services.logind.lidSwitch = "ignore"; };