26 lines
438 B
Nix
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];
|
|
};
|
|
};
|
|
};
|
|
}
|