21 lines
529 B
Nix
21 lines
529 B
Nix
{ options, config, lib, pkgs, user, ... }:
|
|
let
|
|
inherit (lib.modules) mkIf mkForce mkMerge;
|
|
inherit (lib.attrsets) attrValues;
|
|
|
|
cfg = config.modules.${user}.desktop.applications.passwords;
|
|
in
|
|
{
|
|
options.modules.${user}.desktop.applications.passwords = let
|
|
inherit (lib.options) mkEnableOption;
|
|
in {
|
|
enable = mkEnableOption "Enable password manager (bitwarden)";
|
|
};
|
|
|
|
config = mkIf cfg.enable
|
|
{
|
|
home-manager.users.${user}.home.packages = attrValues {
|
|
inherit (pkgs) bitwarden-desktop;
|
|
};
|
|
};
|
|
}
|