mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
flake-parts/setups: fix NixOS image creation function
Forgot to update this... whoops...
This commit is contained in:
parent
69bdb70206
commit
dcdab7d019
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user