commit 488fdcd5ff6cce5dd19c4f25c9b9aecd8006d8a6
parent f8062095c70df0ef06a032e99f93c06dc5fa7e11
Author: Leah (ctucx) <git@ctu.cx>
Date: Wed, 20 Mar 2024 12:31:24 +0100
parent f8062095c70df0ef06a032e99f93c06dc5fa7e11
Author: Leah (ctucx) <git@ctu.cx>
Date: Wed, 20 Mar 2024 12:31:24 +0100
configurations/common/programs: add `bitwarden-cli`
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/configurations/common/programs/bitwarden-cli.nix b/configurations/common/programs/bitwarden-cli.nix @@ -0,0 +1,22 @@ +{ config, pkgs, lib, ... }: + +let + cfg = config.ctucxConfig.programs.bitwarden-cli; + +in { + + options = { + ctucxConfig.programs.bitwarden-cli = { + enable = lib.mkEnableOption "bitwarden-cli"; + }; + }; + + config = lib.mkIf cfg.enable { + home-manager.users.leah = { + home = { + packages = [ pkgs.bitwarden-cli ]; + }; + }; + }; + +}
diff --git a/configurations/common/programs/default.nix b/configurations/common/programs/default.nix @@ -23,13 +23,14 @@ ./ocrmypdf.nix ./phockup.nix ./texlive.nix + ./password-store.nix ./bitwarden-cli.nix ./scripts.nix ]; - ctucxConfig.bash.enable = lib.mkDefault true; + ctucxConfig.programs.bash.enable = lib.mkDefault true; ctucxConfig.programs.shellUtilities.enable = lib.mkDefault true; ctucxConfig.programs.networkUtilities.enable = lib.mkDefault true;