diff --git a/src/__init.nix b/src/__init.nix index 622bbda..c7e9230 100644 --- a/src/__init.nix +++ b/src/__init.nix @@ -14,7 +14,6 @@ let in flops.lib.haumea.pops.default.setInit { src = ./.; - loader = haumea.lib.loaders.scoped; inputs = { lib = (nixlib.lib.recursiveUpdate nixlib.lib inputs.self.lib) // builtins; haumea = haumea.lib; diff --git a/src/flakeOutputs.nix b/src/flakeOutputs.nix index 8d21852..be4544a 100644 --- a/src/flakeOutputs.nix +++ b/src/flakeOutputs.nix @@ -2,6 +2,11 @@ # # SPDX-License-Identifier: MIT +{ + super, + root, + projectDir, +}: let outputs = root.lib.mapPopsExports super.pops; in diff --git a/src/lib/loaderInputs.nix b/src/lib/loaderInputs.nix index a1cee52..9eef64f 100644 --- a/src/lib/loaderInputs.nix +++ b/src/lib/loaderInputs.nix @@ -2,6 +2,11 @@ # # SPDX-License-Identifier: MIT +{ + inputs, + root, + lib, +}: inputs.self.pops.self.load.inputs // { omnibus = diff --git a/src/pops/allData.nix b/src/pops/allData.nix index 38ea1cb..8030ced 100644 --- a/src/pops/allData.nix +++ b/src/pops/allData.nix @@ -2,6 +2,12 @@ # # SPDX-License-Identifier: MIT +{ + super, + root, + haumea, + flops, +}: (super.data.addLoadExtender { load = { loader = with haumea; [ diff --git a/src/pops/darwinModules.nix b/src/pops/darwinModules.nix index 9d389a3..50b12f9 100644 --- a/src/pops/darwinModules.nix +++ b/src/pops/darwinModules.nix @@ -2,6 +2,11 @@ # # SPDX-License-Identifier: MIT +{ + super, + projectDir, + flops, +}: super.nixosModules.addLoadExtender { load.src = projectDir + "/units/nixos/darwinModules"; } diff --git a/src/pops/darwinProfiles.nix b/src/pops/darwinProfiles.nix index e2326e6..2a5e562 100644 --- a/src/pops/darwinProfiles.nix +++ b/src/pops/darwinProfiles.nix @@ -2,6 +2,11 @@ # # SPDX-License-Identifier: MIT +{ + super, + projectDir, + flops, +}: super.nixosProfiles.addLoadExtender { load = { src = projectDir + "/units/nixos/darwinProfiles"; diff --git a/src/pops/data.nix b/src/pops/data.nix index b5c9206..9316065 100644 --- a/src/pops/data.nix +++ b/src/pops/data.nix @@ -2,6 +2,7 @@ # # SPDX-License-Identifier: MIT +{ haumea, flops }: flops.haumea.pops.default.setInit { loader = with haumea; [ matchers.json diff --git a/src/pops/devshellModules.nix b/src/pops/devshellModules.nix index 8427c5d..c7f6186 100644 --- a/src/pops/devshellModules.nix +++ b/src/pops/devshellModules.nix @@ -2,6 +2,11 @@ # # SPDX-License-Identifier: MIT +{ + super, + projectDir, + flops, +}: super.nixosModules.addLoadExtender { load = { src = projectDir + "/units/devshell/modules"; diff --git a/src/pops/devshellProfiles.nix b/src/pops/devshellProfiles.nix index 390e2c1..a2f129e 100644 --- a/src/pops/devshellProfiles.nix +++ b/src/pops/devshellProfiles.nix @@ -2,6 +2,13 @@ # # SPDX-License-Identifier: MIT +{ + super, + projectDir, + haumea, + lib, + inputs, +}: super.nixosProfiles.addLoadExtender { load = { src = projectDir + "/units/devshell/profiles"; diff --git a/src/pops/flake-parts.nix b/src/pops/flake-parts.nix index a287a2c..a0702ff 100644 --- a/src/pops/flake-parts.nix +++ b/src/pops/flake-parts.nix @@ -2,6 +2,11 @@ # # SPDX-License-Identifier: MIT +{ + super, + projectDir, + flops, +}: { modules = super.nixosModules.addLoadExtender { load.src = projectDir + "/units/flake-parts/modules"; diff --git a/src/pops/flake.nix b/src/pops/flake.nix index e4784df..cb5dfce 100644 --- a/src/pops/flake.nix +++ b/src/pops/flake.nix @@ -2,4 +2,5 @@ # # SPDX-License-Identifier: MIT +{ projectDir, flops }: flops.flake.pops.default.setInitInputs (projectDir + "/local/lock") diff --git a/src/pops/homeModules.nix b/src/pops/homeModules.nix index d10a628..fd04e58 100644 --- a/src/pops/homeModules.nix +++ b/src/pops/homeModules.nix @@ -2,6 +2,15 @@ # # SPDX-License-Identifier: MIT +{ + root, + projectDir, + POP, + flops, + inputs, + lib, + haumea, +}: (flops.haumea.pops.default.setInit { src = projectDir + "/units/nixos/homeModules"; type = "nixosModules"; diff --git a/src/pops/homeProfiles.nix b/src/pops/homeProfiles.nix index 260e73f..53ab030 100644 --- a/src/pops/homeProfiles.nix +++ b/src/pops/homeProfiles.nix @@ -2,6 +2,13 @@ # # SPDX-License-Identifier: MIT +{ + super, + projectDir, + POP, + flops, + haumea, +}: (super.homeModules.addLoadExtender { load = { src = projectDir + "/units/nixos/homeProfiles"; diff --git a/src/pops/load.nix b/src/pops/load.nix index 1dde98c..60565e4 100644 --- a/src/pops/load.nix +++ b/src/pops/load.nix @@ -6,6 +6,8 @@ flops, haumea, root, + POP, + lib, }: let inherit (flops) recursiveMerge'; diff --git a/src/pops/nixosModules.nix b/src/pops/nixosModules.nix index 4c62972..c88a2f6 100644 --- a/src/pops/nixosModules.nix +++ b/src/pops/nixosModules.nix @@ -2,6 +2,13 @@ # # SPDX-License-Identifier: MIT +{ + root, + lib, + projectDir, + POP, + flops, +}: (flops.haumea.pops.default.setInit { src = projectDir + "/units/nixos/nixosModules"; type = "nixosModules"; diff --git a/src/pops/nixosProfiles.nix b/src/pops/nixosProfiles.nix index dd8e43e..0bc0c27 100644 --- a/src/pops/nixosProfiles.nix +++ b/src/pops/nixosProfiles.nix @@ -2,6 +2,12 @@ # # SPDX-License-Identifier: MIT +{ + super, + projectDir, + POP, + flops, +}: (super.nixosModules.addLoadExtender { load = { src = projectDir + "/units/nixos/nixosProfiles"; @@ -11,9 +17,9 @@ }).addExporters [ (POP.extendPop flops.haumea.pops.exporter ( - _self: _super: { + selfExp: _super: { exports = { - omnibus = super.exportsOmnibusProfiles self; + omnibusLayout = super.exportsOmnibusProfiles selfExp.layouts.default; }; } )) diff --git a/src/pops/scripts.nix b/src/pops/scripts.nix index 014ed83..09f7324 100644 --- a/src/pops/scripts.nix +++ b/src/pops/scripts.nix @@ -2,6 +2,13 @@ # # SPDX-License-Identifier: MIT +{ + super, + root, + inputs, + lib, + haumea, +}: let inherit (inputs) nixpkgs; inherit (root.ops) makes; diff --git a/src/pops/srvos.nix b/src/pops/srvos.nix index 9e945be..9aecc9e 100644 --- a/src/pops/srvos.nix +++ b/src/pops/srvos.nix @@ -2,6 +2,14 @@ # # SPDX-License-Identifier: MIT +{ + super, + POP, + flops, + inputs, + lib, + haumea, +}: (flops.haumea.pops.default.setInit { src = super.flake.inputs.srvos + "/nixos"; type = "nixosProfiles";