Skip to content

Commit

Permalink
chore: clean path
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Oct 21, 2023
1 parent 28e4756 commit 9b0ccf1
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 74 deletions.
28 changes: 17 additions & 11 deletions local/cells/repo/configs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,24 @@ let
inputs' = (inputs.omnibus.pops.flake.setSystem nixpkgs.system).inputs;
in
inputs.omnibus.pops.configs.addLoadExtender { load.inputs.inputs = inputs'; };
inherit (configs.layouts.default) treefmt lefthook conform;
in
{
conform'.data = {
commit.conventional.scopes = append [
"nixosModules"
"nixosProfiles"
"homeProfiles"
"homeModules"
"darwinModules"
"darwinProfiles"
".*."
];
inherit treefmt lefthook;
conform = {
inherit (conform) default;
custom = {
data = {
commit.conventional.scopes = append [
"nixosModules"
"nixosProfiles"
"homeProfiles"
"homeModules"
"darwinModules"
"darwinProfiles"
".*."
];
};
};
};
inherit (configs.layouts.default) treefmt lefthook conform;
}
2 changes: 1 addition & 1 deletion local/cells/repo/shells.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ in
# It runs the startup hook when entering the shell.
nixago = [
(std.lib.dev.mkNixago std.lib.cfg.conform cell.configs.conform.default
cell.configs.conform'
cell.configs.conform.custom
)
(std.lib.dev.mkNixago std.lib.cfg.lefthook cell.configs.lefthook.default)
(std.lib.dev.mkNixago std.lib.cfg.treefmt cell.configs.treefmt.default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
(root.exporter.pops.nixosModules.addLoadExtender {
load = {
inputs = {
inputs = inputs;
# only for host
# custom = inputs.custom;
};
};
})
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{ root, inputs }:
(root.exporter.pops.nixosModules.addLoadExtender {
load = {
inputs = {
inputs = inputs;
};
inputs = { };
};
})
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{ root, inputs }:
name:
(root.exporter.pops.homeModules.addLoadExtender {
load = {
inputs = {
inputs = inputs;
};
};
})
(root.exporter.pops.homeModules.addLoadExtender { load = { }; })
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
{ root, inputs }:
(root.exporter.pops.homeProfiles.addLoadExtender {
load = {
inputs = {
inputs = inputs;
};
};
})
(root.exporter.pops.homeProfiles.addLoadExtender { load = { }; })
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
name:
(root.exporter.pops.nixosModules.addLoadExtender {
load = {
inputs = {
inputs = inputs;
};
inputs = { };
};
})
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
{ root, inputs }:
(root.exporter.pops.nixosProfiles.addLoadExtender {
load = {
inputs = {
inputs = inputs;
};
};
})
(root.exporter.pops.nixosProfiles.addLoadExtender { load = { }; })
8 changes: 6 additions & 2 deletions templates/hivebus/units/nixos/hosts/darwin/layouts.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
inputs,
self,
lib,
}:
let
outputs = inputs.self;
in
# self' = inputs.self.hosts.nixos;
{
system = "aarch64-darwin";
system = "aarch64-aarch";

data = outputs.local.${self.system}.data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let
inherit (inputs) nixos;
inherit (inputs) nixpkgs;
in
nixpkgs.lib.nixosSystem rec {
system = super.layouts.system;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
(root.exporter.pops.nixosModules.addLoadExtender {
load = {
inputs = {
inputs = inputs;
# only for host
# custom = inputs.custom;
};
};
})
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{ root, inputs }:
(root.exporter.pops.nixosModules.addLoadExtender {
load = {
inputs = {
inputs = inputs;
};
inputs = { };
};
})
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{ root, inputs }:
name:
(root.exporter.pops.homeModules.addLoadExtender {
load = {
inputs = {
inputs = inputs;
};
};
})
(root.exporter.pops.homeModules.addLoadExtender { load = { }; })
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
{ root, inputs }:
(root.exporter.pops.homeProfiles.addLoadExtender {
load = {
inputs = {
inputs = inputs;
};
};
})
(root.exporter.pops.homeProfiles.addLoadExtender { load = { }; })
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
name:
(root.exporter.pops.nixosModules.addLoadExtender {
load = {
inputs = {
inputs = inputs;
};
inputs = { };
};
})
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
{ root, inputs }:
(root.exporter.pops.nixosProfiles.addLoadExtender {
load = {
inputs = {
inputs = inputs;
};
};
})
(root.exporter.pops.nixosProfiles.addLoadExtender { load = { }; })
4 changes: 1 addition & 3 deletions templates/nixos/nix/lib/exporter/pops/subflake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
subflake = omnibus.pops.flake.setInitInputs ../../../lock;
in
{
inputs = subflake.inputs // {
nixpkgs = subflake.inputs.nixpkgs.legacyPackages;
};
inputs = subflake.inputs;
}
)
))

0 comments on commit 9b0ccf1

Please sign in to comment.