refactor(secrets): simplify home manager secrets
check / lint (push) Successful in 15s

This commit is contained in:
hektor committed 2026-11-06 16:24:11 +01:00
1 parent c002826bdc
commit 0e7d35dee1
7 files changed
+389 -348

No files matched your search

+6 -12
View File
@@ -9,21 +9,15 @@ in
options.git.enable = lib.mkEnableOption "git";
config = lib.mkIf cfg.enable {
sops.templates = {
".gitconfig.email" = {
sops.templates = lib.genAttrs' [ "personal" "work" ] (
key:
lib.nameValuePair ".gitconfig.${key}.email" {
inherit owner;
content = ''
[user]
email = ${config.sops.placeholder."email/personal"}
email = ${config.sops.placeholder."email/${key}"}
'';
};
".gitconfig.work.email" = {
inherit owner;
content = ''
[user]
email = ${config.sops.placeholder."email/work"}
'';
};
};
}
);
};
}