diff --git a/flake.nix b/flake.nix index a03d08e..2888d00 100644 --- a/flake.nix +++ b/flake.nix @@ -84,7 +84,7 @@ specialArgs = {inherit inputs outputs;}; modules = [ sops-nix.nixosModules.sops - srvos.nixosModules.hardware-hetzner-cloud + ./hardware/shadowfax-kubevirt.nix srvos.nixosModules.server srvos.nixosModules.mixins-systemd-boot disko.nixosModules.disko diff --git a/hardware/shadowfax-kubevirt.nix b/hardware/shadowfax-kubevirt.nix index 6a4ee12..b9524a3 100644 --- a/hardware/shadowfax-kubevirt.nix +++ b/hardware/shadowfax-kubevirt.nix @@ -3,14 +3,13 @@ imports = [ "${modulesPath}/profiles/qemu-guest.nix" ]; + boot.initrd.availableKernelModules = [ "ahci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.extraModulePackages = []; + + swapDevices = [ ]; config = { - boot.growPartition = true; - boot.loader.grub.device = "/dev/vda"; - - fileSystems."/" = lib.mkDefault { device = "/dev/vda1"; fsType = "ext4"; }; - - networking.useNetworkd = true; - networking.useDHCP = false; + networking.useDHCP = true; }; } \ No newline at end of file