fix: use vmix's own locked nixpkgs for all image building

The NixOS module was importing lib directly with the host's pkgs,
causing image customization to use the host's guestfs-tools instead
of vmix's locked version. guestfs-tools 1.52.2 (from host nixpkgs)
has a bug that overwrites /boot/grub/grub.cfg with resolv.conf
content, breaking VM boot.

Now vmixLib is built once in flake.nix with vmix's own nixpkgs and
passed through the overlay to pkgs.vmixLib. Removes overlay.nix and
module.nix as the logic is inlined in flake.nix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Git Sagar 2026-06-15 10:04:52 -03:00
parent 55697e5d89
commit 192ea9b54d
4 changed files with 7 additions and 19 deletions

View file

@ -1,7 +1,7 @@
{ config, pkgs, lib, ... }:
with lib;
let
vmixLib = import ./../lib {inherit pkgs lib; };
vmixLib = pkgs.vmixLib;
args = { inherit config pkgs lib vmixLib; };
in
{
@ -15,6 +15,4 @@ in
(types.submodule (import ./namespaceSubmoduleOptions.nix args));
default = {};
};
config.nixpkgs.overlays = [ (import ../overlay.nix) ];
}
}