diff --git a/hardware/default.nix b/hardware/default.nix new file mode 100644 index 0000000..50648a2 --- /dev/null +++ b/hardware/default.nix @@ -0,0 +1,15 @@ +{ config, modulesPath, lib, ... }: +{ + imports = [ + "${modulesPath}/profiles/qemu-guest.nix" + ]; + + config = { + boot.growPartition = true; + boot.loader.grub.device = "/dev/vda"; + + fileSystems."/" = lib.mkDefault { device = "/dev/vda1"; fsType = "ext4"; }; + + networking.useNetworkd = true; + }; +} \ No newline at end of file diff --git a/hardware/shadowfax-kubevirt.nix b/hardware/shadowfax-kubevirt.nix index c440e39..abec61c 100644 --- a/hardware/shadowfax-kubevirt.nix +++ b/hardware/shadowfax-kubevirt.nix @@ -1,11 +1,10 @@ { config, modulesPath, lib, ... }: { imports = [ - "${modulesPath}/profiles/qemu-guest.nix" + ./. ]; config = { - networking.useDHCP = true; boot.initrd.availableKernelModules = [ "ahci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ]; boot.initrd.kernelModules = [ "virtio_gpu" ]; boot.extraModulePackages = [];