This commit is contained in:
mjallen18
2025-12-14 21:50:50 -06:00
parent 0012a019fc
commit 34539045e5
41 changed files with 164 additions and 251 deletions

View File

@@ -1,6 +1,6 @@
{ config, lib, ... }:
{ config, lib, namespace, ... }:
let
inherit (lib.mjallen.module) mkModule mkOpt mkBoolOpt;
inherit (lib.${namespace}.module) mkModule mkOpt mkBoolOpt;
in
mkModule {
name = "sops";
@@ -22,18 +22,18 @@ mkModule {
};
config = {
sops = {
inherit (config.mjallen.sops) defaultSopsFile validateSopsFiles;
inherit (config.${namespace}.sops) defaultSopsFile validateSopsFiles;
age = {
inherit (config.mjallen.sops) generateAgeKey;
inherit (config.${namespace}.sops) generateAgeKey;
keyFile =
if config.mjallen.sops.ageKeyPath != null then
config.mjallen.sops.ageKeyPath
if config.${namespace}.sops.ageKeyPath != null then
config.${namespace}.sops.ageKeyPath
else
"${config.users.users.${config.mjallen.user.name}.home}/.config/sops/age/keys.txt";
"${config.users.users.${config.${namespace}.user.name}.home}/.config/sops/age/keys.txt";
sshKeyPaths = config.mjallen.sops.sshKeyPaths;
sshKeyPaths = config.${namespace}.sops.sshKeyPaths;
};
};
};