mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
add modules argument to hosts
This commit is contained in:
parent
01851cb48e
commit
6a9858992d
2 changed files with 3 additions and 4 deletions
|
@ -7,6 +7,6 @@
|
||||||
imports = [ ./. ];
|
imports = [ ./. ];
|
||||||
config = { sconfig.flakes.enable = true; };
|
config = { sconfig.flakes.enable = true; };
|
||||||
};
|
};
|
||||||
nixosConfigurations = import ./hosts { sconfig = ./.; inherit unstable stable2009; };
|
nixosConfigurations = import ./hosts { modules = [ ./. ]; inherit unstable stable2009; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ sconfig, unstable, stable2009 }:
|
{ modules, unstable, stable2009 }:
|
||||||
let
|
let
|
||||||
|
|
||||||
hostMetadata =
|
hostMetadata =
|
||||||
|
@ -25,8 +25,7 @@ builtins.mapAttrs
|
||||||
in
|
in
|
||||||
pkgs.lib.nixosSystem {
|
pkgs.lib.nixosSystem {
|
||||||
inherit (v) system;
|
inherit (v) system;
|
||||||
modules = [
|
modules = modules ++ [
|
||||||
(sconfig)
|
|
||||||
(./. + "/${n}/configuration.nix")
|
(./. + "/${n}/configuration.nix")
|
||||||
(hardwareModule v.hardware)
|
(hardwareModule v.hardware)
|
||||||
({ ... }: {
|
({ ... }: {
|
||||||
|
|
Loading…
Reference in a new issue