From bebd2748d193a2f52ca14ed64cc83b2ef8efae77 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Thu, 29 May 2025 19:23:52 +0200 Subject: [PATCH] Moved bitwarden to a module --- modules/home/utilities/bitwarden.nix | 22 ++++++++++++++++++++++ profiles/home/jan.nix | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 modules/home/utilities/bitwarden.nix diff --git a/modules/home/utilities/bitwarden.nix b/modules/home/utilities/bitwarden.nix new file mode 100644 index 0000000..c027d4c --- /dev/null +++ b/modules/home/utilities/bitwarden.nix @@ -0,0 +1,22 @@ +{ + lib, + config, + pkgs, + ... +}: + +with lib; +let + cfg = config.modules.bitwarden; +in +{ + options.modules.bitwarden = { + enable = mkEnableOption "Bitwarden"; + }; + + config = mkIf cfg.enable { + home.packages = with pkgs; [ + bitwarden-desktop + ]; + }; +} diff --git a/profiles/home/jan.nix b/profiles/home/jan.nix index e070e85..8911368 100644 --- a/profiles/home/jan.nix +++ b/profiles/home/jan.nix @@ -24,7 +24,6 @@ in freecad-wayland inkscape ente-auth - bitwarden carla winbox whatsapp-for-linux @@ -61,6 +60,7 @@ in "flake.lock" ]; }; + bitwarden.enable = true; xpra = { enable = true; hosts = [