nixos-config/modules/nixos/apps/_1password/default.nix
2024-03-27 14:23:25 +01:00

26 lines
438 B
Nix

{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.wyrdgard; let
cfg = config.wyrdgard.apps._1password;
in {
options.wyrdgard.apps._1password = with types; {
enable = mkBoolOpt true "Enable 1Password";
};
config = mkIf cfg.enable {
programs = {
_1password.enable = true;
_1password-gui = {
enable = true;
polkitPolicyOwners = [config.wyrdgard.user.name];
};
};
};
}