Skip to content

Commit

Permalink
chore: without loader.scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Nov 20, 2023
1 parent 9f93122 commit 4ad8f56
Show file tree
Hide file tree
Showing 18 changed files with 93 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/__init.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/flakeOutputs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#
# SPDX-License-Identifier: MIT

{
super,
root,
projectDir,
}:
let
outputs = root.lib.mapPopsExports super.pops;
in
Expand Down
5 changes: 5 additions & 0 deletions src/lib/loaderInputs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#
# SPDX-License-Identifier: MIT

{
inputs,
root,
lib,
}:
inputs.self.pops.self.load.inputs
// {
omnibus =
Expand Down
6 changes: 6 additions & 0 deletions src/pops/allData.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
#
# SPDX-License-Identifier: MIT

{
super,
root,
haumea,
flops,
}:
(super.data.addLoadExtender {
load = {
loader = with haumea; [
Expand Down
5 changes: 5 additions & 0 deletions src/pops/darwinModules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#
# SPDX-License-Identifier: MIT

{
super,
projectDir,
flops,
}:
super.nixosModules.addLoadExtender {
load.src = projectDir + "/units/nixos/darwinModules";
}
5 changes: 5 additions & 0 deletions src/pops/darwinProfiles.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#
# SPDX-License-Identifier: MIT

{
super,
projectDir,
flops,
}:
super.nixosProfiles.addLoadExtender {
load = {
src = projectDir + "/units/nixos/darwinProfiles";
Expand Down
1 change: 1 addition & 0 deletions src/pops/data.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# SPDX-License-Identifier: MIT

{ haumea, flops }:
flops.haumea.pops.default.setInit {
loader = with haumea; [
matchers.json
Expand Down
5 changes: 5 additions & 0 deletions src/pops/devshellModules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#
# SPDX-License-Identifier: MIT

{
super,
projectDir,
flops,
}:
super.nixosModules.addLoadExtender {
load = {
src = projectDir + "/units/devshell/modules";
Expand Down
7 changes: 7 additions & 0 deletions src/pops/devshellProfiles.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
#
# SPDX-License-Identifier: MIT

{
super,
projectDir,
haumea,
lib,
inputs,
}:
super.nixosProfiles.addLoadExtender {
load = {
src = projectDir + "/units/devshell/profiles";
Expand Down
5 changes: 5 additions & 0 deletions src/pops/flake-parts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#
# SPDX-License-Identifier: MIT

{
super,
projectDir,
flops,
}:
{
modules = super.nixosModules.addLoadExtender {
load.src = projectDir + "/units/flake-parts/modules";
Expand Down
1 change: 1 addition & 0 deletions src/pops/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
#
# SPDX-License-Identifier: MIT

{ projectDir, flops }:
flops.flake.pops.default.setInitInputs (projectDir + "/local/lock")
9 changes: 9 additions & 0 deletions src/pops/homeModules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
7 changes: 7 additions & 0 deletions src/pops/homeProfiles.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
#
# SPDX-License-Identifier: MIT

{
super,
projectDir,
POP,
flops,
haumea,
}:
(super.homeModules.addLoadExtender {
load = {
src = projectDir + "/units/nixos/homeProfiles";
Expand Down
2 changes: 2 additions & 0 deletions src/pops/load.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
flops,
haumea,
root,
POP,
lib,
}:
let
inherit (flops) recursiveMerge';
Expand Down
7 changes: 7 additions & 0 deletions src/pops/nixosModules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
10 changes: 8 additions & 2 deletions src/pops/nixosProfiles.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
#
# SPDX-License-Identifier: MIT

{
super,
projectDir,
POP,
flops,
}:
(super.nixosModules.addLoadExtender {
load = {
src = projectDir + "/units/nixos/nixosProfiles";
Expand All @@ -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;
};
}
))
Expand Down
7 changes: 7 additions & 0 deletions src/pops/scripts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
#
# SPDX-License-Identifier: MIT

{
super,
root,
inputs,
lib,
haumea,
}:
let
inherit (inputs) nixpkgs;
inherit (root.ops) makes;
Expand Down
8 changes: 8 additions & 0 deletions src/pops/srvos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 4ad8f56

Please sign in to comment.