Skip to content

Commit

Permalink
flake.nix: lib.nixosSystem: Set system.build.vm* with lib.mkDefault
Browse files Browse the repository at this point in the history
This will help anyone who imports the qemu module themselves, to
avoid a collision.
  • Loading branch information
roberth committed Dec 17, 2021
1 parent 9fd9c61 commit a0ad8dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
system.nixos.revision = final.mkIf (self ? rev) self.rev;

system.build = {
vm = config.virtualisation.vmVariant.system.build.vm;
vmWithBootLoader = config.virtualisation.vmVariantWithBootLoader.system.build.vm;
vm = lib.mkDefault config.virtualisation.vmVariant.system.build.vm;
vmWithBootLoader = lib.mkDefault config.virtualisation.vmVariantWithBootLoader.system.build.vm;
};
})
];
Expand Down

0 comments on commit a0ad8dc

Please sign in to comment.