clanCore/vars/sops: add sops & switch to builtins.path
This commit is contained in:
@@ -256,20 +256,15 @@ in
|
|||||||
'';
|
'';
|
||||||
type = str;
|
type = str;
|
||||||
defaultText = ''
|
defaultText = ''
|
||||||
(pkgs.runCommandNoCCLocal "${generator.config._module.args.name}_${file.config._module.args.name}"
|
builtins.path {
|
||||||
{ }
|
name = "$${generator.config._module.args.name}_$${file.config._module.args.name}";
|
||||||
''\''
|
path = file.config.inRepoPath;
|
||||||
cp $${file.config.inRepoPath} $out
|
}
|
||||||
''\''
|
|
||||||
).outPath;
|
|
||||||
'';
|
'';
|
||||||
default =
|
default = builtins.path {
|
||||||
(pkgs.runCommandNoCCLocal "${generator.config._module.args.name}_${file.config._module.args.name}"
|
name = "${generator.config._module.args.name}_${file.config._module.args.name}";
|
||||||
{ }
|
path = file.config.flakePath;
|
||||||
''
|
};
|
||||||
cp ${file.config.flakePath} $out
|
|
||||||
''
|
|
||||||
).outPath;
|
|
||||||
};
|
};
|
||||||
neededFor = lib.mkOption {
|
neededFor = lib.mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
|
|||||||
@@ -49,7 +49,10 @@ in
|
|||||||
mode
|
mode
|
||||||
neededForUsers
|
neededForUsers
|
||||||
;
|
;
|
||||||
sopsFile = secretPath secret;
|
sopsFile = builtins.path {
|
||||||
|
name = "${secret.generator}_${secret.name}";
|
||||||
|
path = secretPath secret;
|
||||||
|
};
|
||||||
format = "binary";
|
format = "binary";
|
||||||
};
|
};
|
||||||
}) (builtins.filter (x: builtins.pathExists (secretPath x)) vars)
|
}) (builtins.filter (x: builtins.pathExists (secretPath x)) vars)
|
||||||
|
|||||||
Reference in New Issue
Block a user