From f9479f6dad94533a28668a1927e5f9c384cd91b0 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 28 Jan 2024 17:12:12 +0400 Subject: [PATCH] add bitwarden --- hosts/sakotop/configuration.nix | 1 + modules/desktop/apps/bitwarden/default.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 modules/desktop/apps/bitwarden/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 0e998933..fecd05e9 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -39,6 +39,7 @@ nemo.enable = true; pass.enable = true; keepassxc.enable = true; + bitwarden.enable = true; rssguard.enable = true; nicotineplus.enable = true; transmission.enable = true; diff --git a/modules/desktop/apps/bitwarden/default.nix b/modules/desktop/apps/bitwarden/default.nix new file mode 100644 index 00000000..f2bd8f98 --- /dev/null +++ b/modules/desktop/apps/bitwarden/default.nix @@ -0,0 +1,21 @@ +{ + outputs, + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.modules.desktop.apps.bitwarden; +in { + options.modules.desktop.apps.bitwarden = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + bitwarden + ]; + }; +}