trying to get main config to run

This commit is contained in:
christoph.hollizeck 2024-03-26 18:48:58 +01:00 committed by Christoph Hollizeck
parent 77e8840534
commit 8f6e59d683
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
7 changed files with 117 additions and 27 deletions

View file

@ -0,0 +1,20 @@
{ options, config, lib, pkgs, ... }:
with lib;
with lib.wyrdgard; let
cfg = config.wyrdgard.apps._1password;
in
{
options.wyrdgard.apps._1password = with types; {
enable = mkBoolOpt false "Enable 1Password";
};
config = mkIf cfg.enable {
programs = {
_1password.enable = true;
_1password-gui = {
enable = true;
polkitPolicyOwners = [ config.wyrdgard.user.name ];
};
};
};
}