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 a1432c9..0d8b2d9 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; } -- 2.44.2 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 05d9258..6f159d0 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; }; }; - }) + } ]; }; }; -- 2.44.2