From fde723022c6cca64b53b96d90075bd09528827fc Mon Sep 17 00:00:00 2001 From: punkfairie Date: Tue, 25 Feb 2025 16:56:09 -0800 Subject: [PATCH] feat(home): Thunderbird --- modules/home/programs/gui/default.nix | 1 + .../home/programs/gui/thunderbird/default.nix | 23 +++++++++++++++++++ modules/nixos/bundles/desktop/default.nix | 1 + .../nixos/services/gnome-keyring/default.nix | 15 ++++++++++++ .../services/protonmail-bridge/default.nix | 21 +++++++++++++++++ 5 files changed, 61 insertions(+) create mode 100644 modules/home/programs/gui/thunderbird/default.nix create mode 100644 modules/nixos/services/gnome-keyring/default.nix create mode 100644 modules/nixos/services/protonmail-bridge/default.nix diff --git a/modules/home/programs/gui/default.nix b/modules/home/programs/gui/default.nix index 03471eb..292f93f 100644 --- a/modules/home/programs/gui/default.nix +++ b/modules/home/programs/gui/default.nix @@ -14,6 +14,7 @@ in { calibre = enabled; floorp = enabled; pidgin = enabled; + thunderbird = enabled; phpstorm = enabled; rofi = enabled; vesktop = enabled; diff --git a/modules/home/programs/gui/thunderbird/default.nix b/modules/home/programs/gui/thunderbird/default.nix new file mode 100644 index 0000000..ff83549 --- /dev/null +++ b/modules/home/programs/gui/thunderbird/default.nix @@ -0,0 +1,23 @@ +{ + lib, + config, + ... +}: let + cfg = config.marleyos.programs.thunderbird; +in { + options.marleyos.programs.thunderbird.enable = lib.mkEnableOption "thunderbird"; + + config = lib.mkIf cfg.enable { + programs.thunderbird = { + enable = true; + + settings = { + "privacy.donottrackheader.enabled" = true; + }; + + profiles."${config.marleyos.my.name}" = { + isDefault = true; + }; + }; + }; +} diff --git a/modules/nixos/bundles/desktop/default.nix b/modules/nixos/bundles/desktop/default.nix index b9135e7..271d246 100644 --- a/modules/nixos/bundles/desktop/default.nix +++ b/modules/nixos/bundles/desktop/default.nix @@ -29,6 +29,7 @@ in { services = { docker = enabled; + protonmail-bridge = enabled; }; }; }; diff --git a/modules/nixos/services/gnome-keyring/default.nix b/modules/nixos/services/gnome-keyring/default.nix new file mode 100644 index 0000000..a678563 --- /dev/null +++ b/modules/nixos/services/gnome-keyring/default.nix @@ -0,0 +1,15 @@ +{ + lib, + config, + ... +}: let + cfg = config.marleyos.services.gnome-keyring; +in { + options.marleyos.services.gnome-keyring.enable = lib.mkEnableOption "gnome-keyring"; + + config = lib.mkIf cfg.enable { + services.gnome.gnome-keyring = { + enable = true; + }; + }; +} diff --git a/modules/nixos/services/protonmail-bridge/default.nix b/modules/nixos/services/protonmail-bridge/default.nix new file mode 100644 index 0000000..89317cd --- /dev/null +++ b/modules/nixos/services/protonmail-bridge/default.nix @@ -0,0 +1,21 @@ +{ + lib, + config, + pkgs, + ... +}: let + cfg = config.marleyos.services.protonmail-bridge; +in { + options.marleyos.services.protonmail-bridge.enable = lib.mkEnableOption "protonmail-bridge"; + + config = lib.mkIf cfg.enable { + marleyos.services.gnome-keyring.enable = true; + + services.protonmail-bridge = { + enable = true; + package = pkgs.protonmail-bridge-gui; + + path = with pkgs; [gnome-keyring]; + }; + }; +}