From efed8ac3de03bed9fb1d739aaa9fc01249452a1a Mon Sep 17 00:00:00 2001 From: js0ny Date: Mon, 13 Oct 2025 00:59:21 +0100 Subject: [PATCH] nix: libvirt --- nixcfgs/hosts/zephyrus/keyd.nix | 12 +++++------- nixcfgs/modules/nixos/libvirt.nix | 7 +++++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/nixcfgs/hosts/zephyrus/keyd.nix b/nixcfgs/hosts/zephyrus/keyd.nix index e1a0bf7..30c321c 100644 --- a/nixcfgs/hosts/zephyrus/keyd.nix +++ b/nixcfgs/hosts/zephyrus/keyd.nix @@ -10,14 +10,12 @@ keyboards = { externalKeyboard = { ids = [ "0b05:19b6:d167885d" ]; # ASUS Keyboard - settings = { - main = { - capslock = "overload(control, esc)"; - }; - }; + settings = { + main = { + capslock = "overload(control, esc)"; + }; + }; }; }; }; } - - diff --git a/nixcfgs/modules/nixos/libvirt.nix b/nixcfgs/modules/nixos/libvirt.nix index c9f5ada..879e91f 100644 --- a/nixcfgs/modules/nixos/libvirt.nix +++ b/nixcfgs/modules/nixos/libvirt.nix @@ -1,7 +1,10 @@ {pkgs, ...}: { environment.systemPackages = with pkgs; [ virt-manager + dnsmasq + virtiofsd ]; + programs.virt-manager.enable = true; virtualisation.libvirtd = { enable = true; qemu = { @@ -19,4 +22,8 @@ }; }; }; + users.users.js0ny = { + extraGroups = ["libvirtd"]; + }; + networking.firewall.trustedInterfaces = ["virbr0"]; }