From 5b3d74179bd40c819aa7570b0d09ac7479cf8e8b Mon Sep 17 00:00:00 2001 From: tomoron Date: Thu, 3 Jul 2025 14:57:07 +0200 Subject: [PATCH] set virtualmanager as module, trying to fix nvidia stutter screens lag stutter, remove docker legacy version (latest probably fixed) --- homeConfigs/hosts/desktop.nix | 2 +- osConfigs/hosts/desktop.nix | 2 +- osConfigs/hosts/laptop.nix | 7 +------ osConfigs/hosts/server.nix | 2 +- osConfigs/modules/vboxHost.nix | 12 +++++++----- 5 files changed, 11 insertions(+), 14 deletions(-) diff --git a/homeConfigs/hosts/desktop.nix b/homeConfigs/hosts/desktop.nix index 77c4345..88f98c5 100644 --- a/homeConfigs/hosts/desktop.nix +++ b/homeConfigs/hosts/desktop.nix @@ -20,7 +20,7 @@ "LIBVA_DRIVER_NAME,nvidia" "__GLX_VENDOR_LIBRARY_NAME,nvidia" ]; - cursor.no_hardware_cursors = 1; + cursor.no_hardware_cursors = true; }; mods.hyprland.autoSuspend = false; diff --git a/osConfigs/hosts/desktop.nix b/osConfigs/hosts/desktop.nix index 1c21f53..5013a0a 100644 --- a/osConfigs/hosts/desktop.nix +++ b/osConfigs/hosts/desktop.nix @@ -2,6 +2,7 @@ { config, lib, inputs, pkgs, ... }: { + boot.kernelParams = [ "nvidia-drm-modset=1" ]; environment.systemPackages = with pkgs; [ cudatoolkit lm_sensors @@ -14,7 +15,6 @@ boot.kernelModules = [ "kvm-intel" "nvidia" ]; mods.displayManager.enable = true; - hardware.nvidia = { open = true; diff --git a/osConfigs/hosts/laptop.nix b/osConfigs/hosts/laptop.nix index 3de1591..2de2a42 100644 --- a/osConfigs/hosts/laptop.nix +++ b/osConfigs/hosts/laptop.nix @@ -5,18 +5,13 @@ boot.initrd.luks.devices.cryptroot.allowDiscards = true; mods.displayManager.enable = true; - mods.virtualbox.enable = false; + mods.virtualmanager.enable = false; networking.firewall.enable = false; networking.hostName = "patate-douce"; networking.wireless.enable = true; networking.networkmanager.enable = false; - programs.virt-manager.enable = true; - virtualisation.libvirtd.enable = true; - virtualisation.libvirtd.qemu.runAsRoot = true; - virtualisation.libvirtd.qemu.vhostUserPackages = [ pkgs.virtiofsd ]; - networking.dhcpcd.enable = false; systemd.network.enable = true; networking.useNetworkd = true; diff --git a/osConfigs/hosts/server.nix b/osConfigs/hosts/server.nix index 17d4e3d..a57eed1 100644 --- a/osConfigs/hosts/server.nix +++ b/osConfigs/hosts/server.nix @@ -74,7 +74,7 @@ virtualisation.docker = { liveRestore = false; enableOnBoot = true; - package = inputs.pkgs-docker-2750.legacyPackages."x86_64-linux".docker; +# package = inputs.pkgs-docker-2750.legacyPackages."x86_64-linux".docker; # daemon.settings = { # runtimes.nvidia.path = "${pkgs.nvidia-docker}/bin/nvidia-container-runtime"; # exec-opts = ["native.cgroupdriver=cgroupfs"]; diff --git a/osConfigs/modules/vboxHost.nix b/osConfigs/modules/vboxHost.nix index 49facef..359bb9b 100644 --- a/osConfigs/modules/vboxHost.nix +++ b/osConfigs/modules/vboxHost.nix @@ -1,14 +1,16 @@ { config, lib, inputs, pkgs, ... }: { - options.mods.virtualbox.enable = lib.mkOption { + options.mods.virtualManager.enable = lib.mkOption { type = lib.types.bool; default = true; - description = "enable virtualbox as host"; + description = "enable virtual manager as host"; }; - config = lib.mkIf config.mods.virtualbox.enable { - virtualisation.virtualbox.host.enable = true; - users.users.tom.extraGroups = [ "vboxusers" ]; + config = lib.mkIf config.mods.virtualManager.enable { + programs.virt-manager.enable = true; + virtualisation.libvirtd.enable = true; + virtualisation.libvirtd.qemu.runAsRoot = true; + virtualisation.libvirtd.qemu.vhostUserPackages = [ pkgs.virtiofsd ]; }; }