Add extra module option to mkSystem
This commit is contained in:
parent
6355496bf7
commit
f2cc47be34
@ -83,7 +83,7 @@
|
||||
|
||||
# This function produces a nixosSystem which imports configuration.nix and
|
||||
# a Home Manager home.nix for the given user from ./hosts/${hostname}/
|
||||
mkSystem = {system, hostname, username ? _username, stateVersion}:
|
||||
mkSystem = {system, hostname, username ? _username, stateVersion, extraModules ? [] }:
|
||||
lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
@ -101,7 +101,7 @@
|
||||
module = import ./hosts/${hostname}/home.nix;
|
||||
inherit username system stateVersion;
|
||||
})
|
||||
];
|
||||
] ++ extraModules;
|
||||
specialArgs = {
|
||||
inherit inputs outputs vars;
|
||||
extraPkgs = mkExtraPkgs system;
|
||||
|
Loading…
x
Reference in New Issue
Block a user