fix: legacy_470 for gt 710, drop persistenced, idle-reset and ollama
This commit is contained in:
1 parent
c3833aa987
commit
7aa94161aa
2 files changed
+1
-24
No files matched your search
@@ -62,33 +62,11 @@
|
|||||||
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
open = false; # <--- this must be false for proprietary
|
open = false; # <--- this must be false for proprietary
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
nvidiaPersistenced = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.nvidia-idle-reset = {
|
|
||||||
description = "Reset NVIDIA clocks so idle GPU can enter low-power P8";
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
after = [ "nvidia-persistenced.service" "systemd-udev-settle.service" ];
|
|
||||||
wants = [ "nvidia-persistenced.service" "systemd-udev-settle.service" ];
|
|
||||||
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
RemainAfterExit = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
path = [ config.boot.kernelPackages.nvidiaPackages.stable ];
|
|
||||||
|
|
||||||
script = ''
|
|
||||||
nvidia-smi -pm 1 || true
|
|
||||||
nvidia-smi --auto-boost-default=0 || true
|
|
||||||
nvidia-smi -rgc || true
|
|
||||||
nvidia-smi -rmc || true
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ in
|
|||||||
./incus.nix
|
./incus.nix
|
||||||
./drives.nix
|
./drives.nix
|
||||||
./prometheus.nix
|
./prometheus.nix
|
||||||
#./ollama.nix
|
|
||||||
#./cron.nix
|
#./cron.nix
|
||||||
#./auto-upgrade.nix
|
#./auto-upgrade.nix
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in new issue
Block a user