mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-25 19:07:59 +03:00
pass specialArgs through to nixosSystem
This commit is contained in:
parent
b0326ae4f0
commit
e22916ec84
@ -26,11 +26,11 @@
|
|||||||
# format = "vmware";
|
# format = "vmware";
|
||||||
# };
|
# };
|
||||||
# }
|
# }
|
||||||
nixosGenerate = { pkgs, format, modules ? [ ] }:
|
nixosGenerate = { pkgs, format, specialArgs ? { }, modules ? [ ] }:
|
||||||
let
|
let
|
||||||
formatModule = builtins.getAttr format nixosModules;
|
formatModule = builtins.getAttr format nixosModules;
|
||||||
image = nixpkgs.lib.nixosSystem {
|
image = nixpkgs.lib.nixosSystem {
|
||||||
inherit pkgs;
|
inherit pkgs specialArgs;
|
||||||
system = pkgs.system;
|
system = pkgs.system;
|
||||||
modules = [
|
modules = [
|
||||||
formatModule
|
formatModule
|
||||||
|
Loading…
Reference in New Issue
Block a user