diff --git a/examples/nixos/default.nix b/examples/nixos/default.nix index 239d19a..f9be06e 100644 --- a/examples/nixos/default.nix +++ b/examples/nixos/default.nix @@ -2,22 +2,9 @@ let exporter = lib.mapAttrs (_: v: v.exports) ( lib.removeAttrs super.pops [ "inputs" ] ); - - data = - (POS.loadData.addLoadExtender { - loader = - with haumea; - [ - # without the nixpkgs requirement, only the nixpkgs.lib - (matchers.regex "^(.+)\\.(yaml|yml)$" ( - _: _: path: - super.pops.inputs.outputs.std.lib.ops.readYAML path - )) - ]; - }).outputsForTarget.default; in { - inherit data; + data = exporter.data.default; nixosSuites = lib.flatten [ exporter.selfNixOSProfiles.default.bootstrap diff --git a/examples/nixos/pops/data.nix b/examples/nixos/pops/data.nix new file mode 100644 index 0000000..d698379 --- /dev/null +++ b/examples/nixos/pops/data.nix @@ -0,0 +1,8 @@ +(POS.loadData.addLoadExtender { + loader = with haumea; [ + (matchers.regex "^(.+)\\.(yaml|yml)$" ( + _: _: path: + super.inputs.outputs.std.lib.ops.readYAML path + )) + ]; +}) diff --git a/examples/nixos/pops/selfNixOSProfiles.nix b/examples/nixos/pops/selfNixOSProfiles.nix index cecfb0d..05b19cd 100644 --- a/examples/nixos/pops/selfNixOSProfiles.nix +++ b/examples/nixos/pops/selfNixOSProfiles.nix @@ -5,6 +5,7 @@ inputs = { POS = { nixosProfiles = super.nixosProfiles.outputsForTarget.nixosProfiles; + data = super.data.outputsForTarget.default; }; }; }).addExporters