diff --git a/home-manager/bspwm.nix b/home-manager/bspwm.nix index b1a3ad5..b59ac29 100755 --- a/home-manager/bspwm.nix +++ b/home-manager/bspwm.nix @@ -10,6 +10,11 @@ "xsetroot -cursor_name left_ptr" "xsetroot -solid \"#000000\"" "flashfocus" + "bspc monitor -a I" + "bspc monitor -a II" + "bspc monitor -a III" + "bspc monitor -a IV" + "bspc monitor -a X" ]; settings = { border_width = 0; @@ -22,8 +27,5 @@ borderless_monocle = true; gapless_monocle = true; }; - monitors = { - eDP-1 = [ "I" "II" "III" "IV" "V" ]; - }; }; } diff --git a/misc/Main_VM.xml b/misc/Main_VM.xml index 8fe96e8..194eadc 100644 --- a/misc/Main_VM.xml +++ b/misc/Main_VM.xml @@ -27,7 +27,7 @@ hvm - /usr/share/edk2-ovmf/x64/OVMF_CODE.fd + /run/libvirt/nix-ovmf/OVMF_CODE.fd /var/lib/libvirt/qemu/nvram/Main_VM_VARS.fd @@ -72,7 +72,7 @@ restart destroy - /usr/bin/qemu-system-x86_64 + /run/libvirt/nix-emulators/qemu-system-x86_64 @@ -164,7 +164,7 @@ - +
diff --git a/modules/vfio.nix b/modules/vfio.nix index 2d78409..7a5fe50 100644 --- a/modules/vfio.nix +++ b/modules/vfio.nix @@ -1,7 +1,8 @@ +{ pkgs, ... }: { boot = { kernelParams = [ "amd_iommu=on" ]; - boot.kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ]; + kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ]; initrd.kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ]; extraModprobeConfig = "options vfio-pci ids=10de:228e,10de:2504"; }; @@ -9,11 +10,12 @@ libvirtd = { enable = true; qemu = { - runAsRoot = false; - ovmf = { - enable = true; - package = pkgs.OVMFFull; - }; + runAsRoot = true; + ovmf.enable = true; +# verbatimConfig = '' +# user = gerg +# namespaces = [] +# ''; }; }; }; @@ -47,4 +49,4 @@ # Copy hook files ln -sf ${qemuHook} /var/lib/libvirt/hooks/qemu ''; -} \ No newline at end of file +} diff --git a/systems/gerg-desktop.nix b/systems/gerg-desktop.nix index fc7f7cf..da579b7 100755 --- a/systems/gerg-desktop.nix +++ b/systems/gerg-desktop.nix @@ -11,6 +11,7 @@ ../modules/scripts.nix ../modules/misc.nix ../modules/vfio.nix + ../modules/xserver.nix ]; networking.hostName = "gerg-desktop"; nix = { @@ -19,7 +20,6 @@ experimental-features = nix-command flakes ''; }; - services.xserver = import ../modules/xserver.nix; system.stateVersion = "22.11"; hardware.cpu.amd.updateMicrocode = true; # end important stuff @@ -29,7 +29,7 @@ defaultUserShell = pkgs.zsh; users.gerg = { isNormalUser = true; - extraGroups = [ "wheel" "audio" "networkmanager" "libvirt" ]; + extraGroups = [ "wheel" "audio" "networkmanager" "kvm" "libvirtd" ]; }; }; }