nixcfg/modules/nixos/apps/_1password/default.nix
2024-01-11 10:31:04 +00:00

24 lines
452 B
Nix

{ options, config, lib, pkgs, ... }:
with lib;
with lib.plusultra;
let
cfg = config.plusultra.apps._1password;
in
{
options.plusultra.apps._1password = with types; {
enable = mkBoolOpt false "Whether or not to enable 1password.";
};
config = mkIf cfg.enable {
programs = {
_1password = enabled;
_1password-gui = {
enable = true;
polkitPolicyOwners = [ config.plusultra.user.name ];
};
};
};
}