From f2cc47be34885b706a4854dc68160e892a66d3f3 Mon Sep 17 00:00:00 2001 From: NullBite Date: Wed, 24 Jan 2024 11:20:05 +0100 Subject: [PATCH] Add extra module option to mkSystem --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index ca0b2d2..74fadc6 100644 --- a/flake.nix +++ b/flake.nix @@ -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;