conf
This commit is contained in:
parent
acbe48b736
commit
725e927369
4 changed files with 14 additions and 5 deletions
|
|
@ -62,7 +62,7 @@ in {
|
||||||
services.pipewire.extraConfig = {
|
services.pipewire.extraConfig = {
|
||||||
pipewire."99-low-latency" = {
|
pipewire."99-low-latency" = {
|
||||||
context.properties = {
|
context.properties = {
|
||||||
default.allowed-rates = [44100 48000 96000];
|
default.allowed-rates = [44100 48000 96000 192000];
|
||||||
default.clock.rate = 192000;
|
default.clock.rate = 192000;
|
||||||
default.clock.quantum = 32;
|
default.clock.quantum = 32;
|
||||||
default.clock.min-quantum = 32;
|
default.clock.min-quantum = 32;
|
||||||
|
|
|
||||||
|
|
@ -27,15 +27,13 @@
|
||||||
# LIBVA_DRIVER_NAME = "nvidia";
|
# LIBVA_DRIVER_NAME = "nvidia";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = false;
|
||||||
powerManagement.finegrained = false;
|
powerManagement.finegrained = false;
|
||||||
# options: production, beta, vulkan_beta, latest
|
# options: production, beta, vulkan_beta, latest
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.production;
|
package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||||
open = false;
|
open = false;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = false;
|
||||||
};
|
};
|
||||||
# enable core and mem freq sliders for nvidia
|
# enable core and mem freq sliders for nvidia
|
||||||
services.xserver.deviceSection = ''
|
services.xserver.deviceSection = ''
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,16 @@
|
||||||
pkgs,
|
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 = [
|
# boot.kernelPatches = [
|
||||||
# (lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.11")
|
# (lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.11")
|
||||||
# {
|
# {
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,8 @@ def nr [package] {
|
||||||
}
|
}
|
||||||
|
|
||||||
def rebuild [subcommand] {
|
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
|
sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose
|
||||||
}
|
}
|
||||||
# def post-rebuild [] {
|
# def post-rebuild [] {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue