20 lines
353 B
Nix
20 lines
353 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config._1password;
|
|
in
|
|
{
|
|
options = {
|
|
_1password.enable = lib.mkEnableOption "enable _1password module";
|
|
};
|
|
|
|
config.programs._1password = lib.mkIf cfg.enable {
|
|
enable = true;
|
|
};
|
|
|
|
config.programs._1password-gui = lib.mkIf cfg.enable {
|
|
enable = true;
|
|
polkitPolicyOwners = [ "mbessette" ];
|
|
};
|
|
}
|