pass specialArgs through to nixosSystem

This commit is contained in:
Alan Strohm 2022-04-21 09:43:21 -07:00
parent b0326ae4f0
commit e22916ec84

View File

@ -26,11 +26,11 @@
# format = "vmware";
# };
# }
nixosGenerate = { pkgs, format, modules ? [ ] }:
nixosGenerate = { pkgs, format, specialArgs ? { }, modules ? [ ] }:
let
formatModule = builtins.getAttr format nixosModules;
image = nixpkgs.lib.nixosSystem {
inherit pkgs;
inherit pkgs specialArgs;
system = pkgs.system;
modules = [
formatModule