mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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 = [ ./. ];
|
||||
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
|
||||
|
||||
hostMetadata =
|
||||
|
@ -25,8 +25,7 @@ builtins.mapAttrs
|
|||
in
|
||||
pkgs.lib.nixosSystem {
|
||||
inherit (v) system;
|
||||
modules = [
|
||||
(sconfig)
|
||||
modules = modules ++ [
|
||||
(./. + "/${n}/configuration.nix")
|
||||
(hardwareModule v.hardware)
|
||||
({ ... }: {
|
||||
|
|
Loading…
Reference in a new issue