From 75b64379be47be0c040c7b0e2a8a7f3d04e5a31a Mon Sep 17 00:00:00 2001 From: catvayor Date: Thu, 23 Jan 2025 11:03:29 +0100 Subject: [PATCH] feat(probook): virtiofs & vm networking --- machines/kat-probook/configuration.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/machines/kat-probook/configuration.nix b/machines/kat-probook/configuration.nix index 70b37b3..5c8cc15 100644 --- a/machines/kat-probook/configuration.nix +++ b/machines/kat-probook/configuration.nix @@ -48,12 +48,15 @@ in ]; } ]; - networking.networkmanager = { - enable = true; - unmanaged = [ - "enp2s0" - "wg0" - ]; + networking = { + networkmanager = { + enable = true; + unmanaged = [ + "enp2s0" + "wg0" + ]; + }; + firewall.allowedUDPPorts = [ 67 53 ]; }; systemd.tmpfiles.rules = [ "w /sys/devices/system/cpu/cpufreq/policy*/scaling_governor - - - - performance" @@ -187,7 +190,10 @@ in "catvayor".kat.work-tooling = true; }; - virtualisation.libvirtd.enable = true; + virtualisation.libvirtd = { + enable = true; + qemu.vhostUserPackages = [ pkgs.virtiofsd ]; + }; system.stateVersion = "23.11"; }