diff --git a/nixos-infect b/nixos-infect index 4d90c10..d109df9 100755 --- a/nixos-infect +++ b/nixos-infect @@ -38,9 +38,9 @@ makeConf() { EOF # If you rerun this later, be sure to prune the filesSystems attr cat > /etc/nixos/hardware-configuration.nix << EOF -{ ... }: +{ modulesPath, ... }: { - imports = [ ]; + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; boot.loader.grub.device = "$grubdev"; fileSystems."/" = { device = "$rootfsdev"; fsType = "ext4"; }; }