From e22916ec840f6ff16d4d02b96baa3a4c7255ae06 Mon Sep 17 00:00:00 2001 From: Alan Strohm Date: Thu, 21 Apr 2022 09:43:21 -0700 Subject: [PATCH] pass specialArgs through to nixosSystem --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 43f3f86..6fb163d 100644 --- a/flake.nix +++ b/flake.nix @@ -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