Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add QEMU/libvirtd

+10 -1
+9
hardware-configuration.nix
··· 12 12 boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; 13 13 boot.initrd.kernelModules = [ "kvm-amd" "amdgpu" ]; 14 14 boot.kernelModules = [ "kvm-amd" "amdgpu"]; 15 + virtualisation.libvirtd = { 16 + enable = true; 17 + qemu = { 18 + runAsRoot = false; 19 + ovmf = { 20 + enable = true; 21 + }; 22 + }; 23 + }; 15 24 #boot.extraModulePackages = with config.boot.kernelPackages; [ ]; 16 25 boot.kernelParams = [ ]; 17 26
+1 -1
users.nix
··· 16 16 users.users.noah = { 17 17 isNormalUser = true; 18 18 shell = pkgs.fish; 19 - extraGroups = [ "wheel" "video" "nas" ]; # Enable ‘sudo’ for the user. 19 + extraGroups = [ "wheel" "video" "nas" "libvirtd" "qemu-libvirtd"]; # Enable ‘sudo’ for the user. 20 20 hashedPasswordFile = "/etc/nixos/noah-password"; 21 21 openssh.authorizedKeys.keys = [ 22 22 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC/cXL1cV6QUW5z2bJp1mCu0CXrcc0Dntdxaeo3fg60N noah@odin"