summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorseth <[email protected]>2023-08-13 15:18:07 -0400
committerseth <[email protected]>2023-08-13 15:18:07 -0400
commit92f04aaeebdeea77adf1687328720d3583fa91f3 (patch)
tree26f955d4c901b835fb76f07f88f380d8a0dbf4b3 /hosts
parent547b88bfdd93a700636a1497878f2a082f95e765 (diff)
modules/nix+hosts: use all inputs across channels and registry
Diffstat (limited to 'hosts')
-rw-r--r--hosts/profiles.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/hosts/profiles.nix b/hosts/profiles.nix
index 149c69f..390e793 100644
--- a/hosts/profiles.nix
+++ b/hosts/profiles.nix
@@ -9,10 +9,12 @@
};
nix = {
- registry = with inputs; {
- getchoo.flake = getchoo;
- nixpkgs.flake = nixpkgs;
- };
+ registry =
+ {
+ n.flake = inputs.nixpkgs;
+ }
+ // (builtins.mapAttrs (_: flake: {inherit flake;})
+ (inputs.nixpkgs.lib.filterAttrs (n: _: n != "nixpkgs") inputs));
settings = {
trusted-substituters = [
@@ -29,10 +31,13 @@
};
};
};
+
+ specialArgs = inputs // {inherit inputs;};
in {
personal = {
system = "x86_64-linux";
builder = inputs.nixpkgs.lib.nixosSystem;
+ inherit specialArgs;
modules = with inputs; [
common
@@ -58,12 +63,11 @@ in {
system.stateVersion = "23.11";
}
];
-
- specialArgs = inputs;
};
personal-darwin = {
builder = inputs.darwin.lib.darwinSystem;
+ inherit specialArgs;
modules = with inputs; [
common
home-manager.darwinModules.home-manager
@@ -79,12 +83,11 @@ in {
system.stateVersion = 4;
}
];
-
- specialArgs = inputs;
};
server = {
builder = inputs.nixpkgs-stable.lib.nixosSystem;
+ inherit specialArgs;
modules = with inputs; [
ragenix.nixosModules.default
@@ -121,7 +124,5 @@ in {
system.stateVersion = "23.05";
}
];
-
- specialArgs = inputs;
};
}