From 2cfdf79e7b5053db81bbd182577576c713e72a0b Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sat, 25 May 2024 10:46:46 -0500 Subject: [PATCH] update device --- flake.nix | 2 +- hardware/shadowfax-kubevirt.nix | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) 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