forked from clan/clan-core
different fix for missing secrets
This commit is contained in:
parent
f1e8070412
commit
cfec69fec4
@ -6,12 +6,12 @@
|
||||
let
|
||||
machinesDirs =
|
||||
if builtins.pathExists "${directory}/machines"
|
||||
then builtins.readDir "${directory}/machines"
|
||||
then builtins.readDir directory + /machines
|
||||
else { };
|
||||
|
||||
machineSettings = machineName:
|
||||
if builtins.pathExists "${directory}/machines/${machineName}/settings.json"
|
||||
then builtins.fromJSON (builtins.readFile "${directory}/machines/${machineName}/settings.json")
|
||||
then builtins.fromJSON (builtins.readFile directory + /machines/${machineName}/settings.json)
|
||||
else { };
|
||||
|
||||
nixosConfigurations = lib.mapAttrs
|
||||
|
@ -59,7 +59,7 @@
|
||||
in
|
||||
builtins.mapAttrs
|
||||
(name: _: {
|
||||
sopsFile = "${config.clanCore.clanDir}/sops/secrets/${name}/secret";
|
||||
sopsFile = config.clanCore.clanDir + "/sops/secrets/${name}/secret";
|
||||
format = "binary";
|
||||
})
|
||||
secrets;
|
||||
|
Loading…
Reference in New Issue
Block a user