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 = [ ./. ];
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
hostMetadata =
@ -25,8 +25,7 @@ builtins.mapAttrs
in
pkgs.lib.nixosSystem {
inherit (v) system;
modules = [
(sconfig)
modules = modules ++ [
(./. + "/${n}/configuration.nix")
(hardwareModule v.hardware)
({ ... }: {