flake-parts/setups: fix NixOS image creation function

Forgot to update this... whoops...
This commit is contained in:
Gabriel Arazas 2024-07-19 13:48:56 +08:00
parent 69bdb70206
commit dcdab7d019
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -57,17 +57,17 @@ let
inputs.nixos-generators.nixosModules // customFormats;
# A very very thin wrapper around `mkHost` to build with the given format.
mkImage =
{ system
, nixpkgsBranch ? "nixpkgs"
, extraModules ? [ ]
, format ? "iso"
}:
mkImage = {
pkgs,
system,
extraModules ? [ ],
format ? "iso",
}:
let
extraModules' =
extraModules ++ [ nixosGeneratorsModulesSet.${format} ];
image = mkHost {
inherit nixpkgsBranch system;
inherit pkgs system;
extraModules = extraModules';
};
in