chore: make namespace generic so people can copy easier

This commit is contained in:
Christoph Hollizeck 2024-10-11 00:17:03 +02:00
parent f86211cb02
commit f7f9db9509
45 changed files with 249 additions and 217 deletions

View file

@ -1,17 +1,19 @@
{
options,
config,
lib,
namespace,
options,
pkgs,
...
}:
with lib;
with lib.wyrdgard;
let
cfg = config.wyrdgard.apps._1password;
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;
cfg = config.${namespace}.apps._1password;
in
{
options.wyrdgard.apps._1password = with types; {
options.${namespace}.apps._1password = {
enable = mkBoolOpt true "Enable 1Password";
};
@ -20,7 +22,7 @@ in
_1password.enable = true;
_1password-gui = {
enable = true;
polkitPolicyOwners = [ config.wyrdgard.user.name ];
polkitPolicyOwners = [ config.${namespace}.user.name ];
};
};
};