different fix for missing secrets
This commit is contained in:
@@ -6,12 +6,12 @@
|
|||||||
let
|
let
|
||||||
machinesDirs =
|
machinesDirs =
|
||||||
if builtins.pathExists "${directory}/machines"
|
if builtins.pathExists "${directory}/machines"
|
||||||
then builtins.readDir "${directory}/machines"
|
then builtins.readDir directory + /machines
|
||||||
else { };
|
else { };
|
||||||
|
|
||||||
machineSettings = machineName:
|
machineSettings = machineName:
|
||||||
if builtins.pathExists "${directory}/machines/${machineName}/settings.json"
|
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 { };
|
else { };
|
||||||
|
|
||||||
nixosConfigurations = lib.mapAttrs
|
nixosConfigurations = lib.mapAttrs
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
in
|
in
|
||||||
builtins.mapAttrs
|
builtins.mapAttrs
|
||||||
(name: _: {
|
(name: _: {
|
||||||
sopsFile = "${config.clanCore.clanDir}/sops/secrets/${name}/secret";
|
sopsFile = config.clanCore.clanDir + "/sops/secrets/${name}/secret";
|
||||||
format = "binary";
|
format = "binary";
|
||||||
})
|
})
|
||||||
secrets;
|
secrets;
|
||||||
|
|||||||
Reference in New Issue
Block a user