nixos-config/modules/nixos/apps/_1password/default.nix
2024-04-04 19:37:06 +02:00

28 lines
440 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 ];
};
};
};
}