Fix qemu without rutabagaSupport

This commit is contained in:
Rodrigo Arias 2024-01-18 15:59:51 +01:00
parent 0b512ba9d1
commit 5dbb297adf
3 changed files with 17 additions and 2 deletions

View File

@ -1,5 +1,11 @@
{ lib, ... }:
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
"${modulesPath}/profiles/base.nix"
#"${modulesPath}/virtualisation/qemu-vm.nix"
];
networking.hostName = "visionfive-nix";
boot = {
@ -12,10 +18,17 @@
"9pnet"
"9pnet_virtio"
];
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
};
nixpkgs.overlays = [ (import ./overlay.nix) ];
# Enable ssh on boot
services.openssh.enable = true;
system.stateVersion = "24.05";
}

View File

@ -14,7 +14,7 @@
pkgs = import nixpkgs { inherit system; };
modules = [
./configuration.nix
"${nixos-hardware}/starfive/visionfive/v2/sd-image-installer.nix"
#"${nixos-hardware}/starfive/visionfive/v2/sd-image-installer.nix"
];
in {
overlay = import ./overlay.nix;

View File

@ -18,4 +18,6 @@ final: prev:
systemd = prev.systemd.overrideAttrs (old: {
CFLAGS = "-Wno-error=format-overflow";
});
qemu = prev.qemu.override { rutabagaSupport = false; };
}