add modules argument to hosts

This commit is contained in:
Sean Buckley 2021-04-12 20:42:45 -04:00
parent 01851cb48e
commit 6a9858992d
2 changed files with 3 additions and 4 deletions

View file

@ -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; };
}; };
} }

View file

@ -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)
({ ... }: { ({ ... }: {