diff options
-rw-r--r-- | lib/mk_system.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mk_system.nix b/lib/mk_system.nix index d6a6d79..8af0aa6 100644 --- a/lib/mk_system.nix +++ b/lib/mk_system.nix @@ -1,6 +1,6 @@ { self, ... } @ args: -{ name, nixpkgs, extraModules }: +{ name, nixpkgs, overlays ? null, extraModules ? null }: nixpkgs.lib.nixosSystem ( let configFolder = "${self}/nixos"; @@ -22,6 +22,7 @@ nixpkgs.lib.nixosSystem ( hardware ../nixos/modules/flake.nix ../nixos/modules/nix.nix - ] ++ nixpkgs.lib.optionals (extraModules != null) extraModules; + ] ++ nixpkgs.lib.optional (overlays != null) { nixpkgs.overlays = overlays; } + ++ nixpkgs.lib.optionals (extraModules != null) extraModules; } ) |