All my system configs and packages in one repo
1
fork

Configure Feed

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

virtualization stuff

+62
+1
users/leah/programs/default.nix
··· 12 12 ./firefox 13 13 ./nvim 14 14 ./rust 15 + ./virt-manager 15 16 ]; 16 17 17 18 hm.home.packages = with pkgs; [
+61
users/leah/programs/virt-manager/default.nix
··· 1 + { 2 + pkgs, 3 + lib, 4 + ... 5 + }: { 6 + boot.kernelModules = ["vfio-pci"]; 7 + boot.blacklistedKernelModules = ["nouveau"]; 8 + boot.kernelParams = ["intel_iommu=on"]; 9 + 10 + services.xserver.videoDrivers = lib.mkForce []; 11 + 12 + systemd.tmpfiles.rules = ["f /dev/shm/looking-glass 0660 leah kvm -"]; 13 + 14 + hm.home.packages = [pkgs.looking-glass-client]; 15 + 16 + hm.xdg.configFile."looking-glass/client.ini".text = lib.generators.toINI {} { 17 + win = { 18 + size = "1920x1200"; 19 + autoResize = "yes"; 20 + fullScreen = "no"; 21 + }; 22 + input = { 23 + autoCapture = "yes"; 24 + escapeKey = "KEY_F3"; 25 + }; 26 + }; 27 + 28 + virtualisation = { 29 + libvirtd = { 30 + enable = true; 31 + qemu = { 32 + swtpm.enable = true; 33 + ovmf.enable = true; 34 + ovmf.packages = [pkgs.OVMFFull.fd]; 35 + }; 36 + }; 37 + spiceUSBRedirection.enable = true; 38 + }; 39 + 40 + services.spice-vdagentd.enable = true; 41 + 42 + programs.virt-manager.enable = true; 43 + 44 + roles.base.user.extraGroups = ["libvirtd"]; 45 + 46 + environment.systemPackages = with pkgs; [ 47 + virt-viewer 48 + spice 49 + spice-gtk 50 + spice-protocol 51 + win-virtio 52 + win-spice 53 + ]; 54 + 55 + hm.dconf.settings = { 56 + "org/virt-manager/virt-manager/connections" = { 57 + autoconnect = ["qemu:///system"]; 58 + uris = ["qemu:///system"]; 59 + }; 60 + }; 61 + }