Skip to content

Commit

Permalink
Merge pull request #282 from R-VdP/allow_override_nixosSystem
Browse files Browse the repository at this point in the history
Allow overriding the nixosSystem function.
  • Loading branch information
Lassulus authored Dec 4, 2023
2 parents 150f38b + d73f992 commit 246219b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
nixosGenerate = {
pkgs ? null,
lib ? nixpkgs.lib,
nixosSystem ? nixpkgs.lib.nixosSystem,
format,
system ? null,
specialArgs ? {},
Expand All @@ -82,7 +83,7 @@
)
customFormats;
formatModule = builtins.getAttr format (self.nixosModules // extraFormats);
image = nixpkgs.lib.nixosSystem {
image = nixosSystem {
inherit pkgs specialArgs;
system =
if system != null
Expand Down

0 comments on commit 246219b

Please sign in to comment.