diff --git a/extras/gaming.nix b/extras/gaming.nix index d244fb7..4445921 100644 --- a/extras/gaming.nix +++ b/extras/gaming.nix @@ -62,7 +62,7 @@ in { services.pipewire.extraConfig = { pipewire."99-low-latency" = { context.properties = { - default.allowed-rates = [44100 48000 96000]; + default.allowed-rates = [44100 48000 96000 192000]; default.clock.rate = 192000; default.clock.quantum = 32; default.clock.min-quantum = 32; diff --git a/systems/NOcomputer.nix b/systems/NOcomputer.nix index 946e75e..0985969 100644 --- a/systems/NOcomputer.nix +++ b/systems/NOcomputer.nix @@ -27,15 +27,13 @@ # LIBVA_DRIVER_NAME = "nvidia"; }; - services.xserver.videoDrivers = ["nvidia"]; hardware.nvidia = { - modesetting.enable = true; powerManagement.enable = false; powerManagement.finegrained = false; # options: production, beta, vulkan_beta, latest package = config.boot.kernelPackages.nvidiaPackages.production; open = false; - nvidiaSettings = true; + nvidiaSettings = false; }; # enable core and mem freq sliders for nvidia services.xserver.deviceSection = '' diff --git a/systems/NOlaptop.nix b/systems/NOlaptop.nix index db57465..766dd5f 100644 --- a/systems/NOlaptop.nix +++ b/systems/NOlaptop.nix @@ -4,6 +4,16 @@ pkgs, ... }: { + boot.kernelPatches = [ + (lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.11") + { + name = "cros_ec_lpc"; + patch = pkgs.fetchpatch { + url = "https://patchwork.kernel.org/series/840830/mbox/"; + sha256 = "sha256-7jSEAGInFC+a+ozCyD4dFz3Qgh2JrHskwz7UfswizFw="; + }; + }) + ]; # boot.kernelPatches = [ # (lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.11") # { diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index e27b0cc..307466b 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -49,7 +49,8 @@ def nr [package] { } def rebuild [subcommand] { - sudo nix store ping --store ssh://nocomputer + sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose + # sudo nix store ping --store ssh://nocomputer sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose } # def post-rebuild [] {