nixcfg/modules/nixos/apps/_1password/default.nix

24 lines
452 B
Nix
Raw Normal View History

2024-01-11 11:26:46 +01:00
{ 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 ];
};
};
};
}