diff --git a/hosts/malachite/default.nix b/hosts/malachite/default.nix index b546972..43bd499 100644 --- a/hosts/malachite/default.nix +++ b/hosts/malachite/default.nix @@ -1,15 +1,13 @@ { config, pkgs, lib, ... }: let passthrough = pkgs.writeShellApplication { - name = "pasthrough.sh"; + name = "passthrough.sh"; runtimeInputs = lib.attrVals [ "coreutils" "kmod" "libvirt" "procps" ] pkgs; text = '' GUEST_NAME="$1" HOOK_NAME="$2" STATE_NAME="$3" - echo 19>/home/stitchynyan/startlogfile - BASH_XTRACEFD=19 set -x # For the windows 10 VM @@ -19,7 +17,7 @@ let if [[ "$HOOK_NAME/$STATE_NAME" == "prepare/begin" ]]; then # Remove Hyprland - pkill Hyprland + #pkill Hyprland # Unbind VTconsoles echo 0 > /sys/class/vtconsole/vtcon0/bind @@ -77,15 +75,19 @@ in { ../default.nix ]; virtualisation.libvirtd.hooks.qemu = { - passthrough = "${passthrough}"; + passthrough = "${passthrough}/bin/passthrough.sh"; }; stitchyconf = { artPkgs.enable = true; }; - virtualisation.libvirtd.enable = true; + virtualisation.libvirtd = { + enable = true; + onBoot = "ignore"; + }; hardware = { + opentabletdriver.enable = true; steam-hardware.enable = true; }; diff --git a/hosts/malachite/hardware-configuration.nix b/hosts/malachite/hardware-configuration.nix index 1cbe4bc..5589da3 100644 --- a/hosts/malachite/hardware-configuration.nix +++ b/hosts/malachite/hardware-configuration.nix @@ -8,7 +8,7 @@ boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" "vfio-pci" ]; - boot.extraModulePackages = [ ]; + boot.extraModulePackages = lib.attrVals [ "rtl8812au" ] config.boot.kernelPackages; boot.kernelParams = [ "loglevel=3"