refactor(secrets): simplify secrets

This commit is contained in:
2026-04-20 19:17:37 +02:00
parent 9e3652a55e
commit fd80d9424e
9 changed files with 102 additions and 94 deletions

View File

@@ -1,11 +1,6 @@
{ config, myUtils, ... }:
let
inherit (config.secrets) sopsDir username;
owner = config.users.users.${username}.name;
in
{
config.sops = {
secrets = myUtils.mkSopsSecrets sopsDir "anki" [ "sync-user" "sync-key" ] { inherit owner; };
};
config.secrets.groups.anki = [
"sync-user"
"sync-key"
];
}