sops: Turn secretsFile into an absolute path

This commit is contained in:
SebastianStork 2025-12-25 21:06:56 +01:00
parent 21b4e04613
commit 1170bbf857
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI
2 changed files with 7 additions and 9 deletions

View file

@ -10,13 +10,13 @@
{
packages.sops-config =
let
adminKey = "age1mpq8m4p7dnxh5ze3fh7etd2k6sp85zdnmp9te3e9chcw4pw07pcq960zh5";
adminPublicKey = "age1mpq8m4p7dnxh5ze3fh7etd2k6sp85zdnmp9te3e9chcw4pw07pcq960zh5";
mkCreationRule = sopsCfg: {
path_regex = sopsCfg.secretsFile;
path_regex = self.lib.relativePath sopsCfg.secretsFile;
key_groups = lib.singleton {
age = [
adminKey
adminPublicKey
sopsCfg.agePublicKey
];
};