mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +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;
|
inputs.nixos-generators.nixosModules // customFormats;
|
||||||
|
|
||||||
# A very very thin wrapper around `mkHost` to build with the given format.
|
# A very very thin wrapper around `mkHost` to build with the given format.
|
||||||
mkImage =
|
mkImage = {
|
||||||
{ system
|
pkgs,
|
||||||
, nixpkgsBranch ? "nixpkgs"
|
system,
|
||||||
, extraModules ? [ ]
|
extraModules ? [ ],
|
||||||
, format ? "iso"
|
format ? "iso",
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
extraModules' =
|
extraModules' =
|
||||||
extraModules ++ [ nixosGeneratorsModulesSet.${format} ];
|
extraModules ++ [ nixosGeneratorsModulesSet.${format} ];
|
||||||
image = mkHost {
|
image = mkHost {
|
||||||
inherit nixpkgsBranch system;
|
inherit pkgs system;
|
||||||
extraModules = extraModules';
|
extraModules = extraModules';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user