mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
make hosts config portable
This commit is contained in:
parent
ba35b789b8
commit
0d08424929
2 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
||||||
imports = [ ./. ];
|
imports = [ ./. ];
|
||||||
config = { sconfig.flakes.enable = true; };
|
config = { sconfig.flakes.enable = true; };
|
||||||
};
|
};
|
||||||
nixosConfigurations = import ./hosts { inherit unstable stable2009; };
|
nixosConfigurations = import ./hosts { sconfig = ./.; inherit unstable stable2009; };
|
||||||
|
|
||||||
defaultPackage."x86_64-linux" =
|
defaultPackage."x86_64-linux" =
|
||||||
with (import unstable { system = "x86_64-linux"; });
|
with (import unstable { system = "x86_64-linux"; });
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ unstable, stable2009 }:
|
{ sconfig, unstable, stable2009 }:
|
||||||
let
|
let
|
||||||
|
|
||||||
hostMetadata =
|
hostMetadata =
|
||||||
|
@ -29,7 +29,7 @@ builtins.listToAttrs (
|
||||||
value = pkgs.lib.nixosSystem {
|
value = pkgs.lib.nixosSystem {
|
||||||
system = h.system;
|
system = h.system;
|
||||||
modules = [
|
modules = [
|
||||||
(./..)
|
(sconfig)
|
||||||
(./. + "/${h.name}/configuration.nix")
|
(./. + "/${h.name}/configuration.nix")
|
||||||
(hardwareModule { inherit pkgs; inherit (h) hardware; })
|
(hardwareModule { inherit pkgs; inherit (h) hardware; })
|
||||||
({ ... }: {
|
({ ... }: {
|
||||||
|
|
Loading…
Reference in a new issue