fix: update secrets approach to match 'nix-secrets'
This commit is contained in:
11
modules/anki/default.nix
Normal file
11
modules/anki/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ 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; };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user