diff --git a/core/system/vm-guest.nix b/core/system/vm-guest.nix index f600744..ac73040 100644 --- a/core/system/vm-guest.nix +++ b/core/system/vm-guest.nix @@ -1,4 +1,4 @@ -{ lib, ... }: +{ inputs, lib, ... }: { # Shared VM configuration @@ -12,6 +12,9 @@ services.qemuGuest.enable = true; services.xserver.videoDrivers = [ "qxl" "virtio" "modesetting" ]; + # Provide the flake to the VM for local rebuilding + environment.etc."nomarchy".source = lib.mkDefault inputs.self; + # Dummy hardware config for VM fileSystems."/" = lib.mkDefault { device = "/dev/disk/by-label/nixos"; }; boot.loader.grub.device = lib.mkDefault "/dev/vda";