Add extra module option to mkSystem

This commit is contained in:
NullBite 2024-01-24 11:20:05 +01:00
parent 6355496bf7
commit f2cc47be34
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -83,7 +83,7 @@
# This function produces a nixosSystem which imports configuration.nix and # This function produces a nixosSystem which imports configuration.nix and
# a Home Manager home.nix for the given user from ./hosts/${hostname}/ # 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 { lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
@ -101,7 +101,7 @@
module = import ./hosts/${hostname}/home.nix; module = import ./hosts/${hostname}/home.nix;
inherit username system stateVersion; inherit username system stateVersion;
}) })
]; ] ++ extraModules;
specialArgs = { specialArgs = {
inherit inputs outputs vars; inherit inputs outputs vars;
extraPkgs = mkExtraPkgs system; extraPkgs = mkExtraPkgs system;