From 31a885926b400476e61057be9c43838227980617 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 23 Oct 2024 20:16:53 +0200 Subject: [PATCH 1/2] trinkgenossin: fix network in initrd, virtio_net kernel module was missing. Also this is a QEMU host, hyperV is not required. --- hosts/trinkgenossin/hardware-configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/trinkgenossin/hardware-configuration.nix b/hosts/trinkgenossin/hardware-configuration.nix index a1432c97..0d8b2d9b 100644 --- a/hosts/trinkgenossin/hardware-configuration.nix +++ b/hosts/trinkgenossin/hardware-configuration.nix @@ -18,6 +18,7 @@ "virtio_pci" "sr_mod" "virtio_blk" + "virtio_net" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-amd" ]; @@ -50,5 +51,4 @@ swapDevices = [ { device = "/dev/disk/by-label/swap"; } ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - virtualisation.hypervGuest.enable = true; } From 2c29d27ce7169c94d5b4edddd0bfdf0b509bb49d Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 23 Oct 2024 20:18:03 +0200 Subject: [PATCH 2/2] style: remove redundant brackets --- hosts/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/default.nix b/hosts/default.nix index 05d92580..6f159d09 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -10,7 +10,7 @@ home-manager = { imports = [ inputs.home-manager.nixosModules.home-manager - ({ + { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.extraSpecialArgs = { @@ -18,7 +18,7 @@ inherit self inputs config; }; }; - }) + } ]; }; };