hate nvidia

for some reason 580 is the stable version on 25.11?
This commit is contained in:
alsaiduq-lab 2025-12-06 00:23:53 -07:00
parent 4efebf051a
commit 2856391f26
3 changed files with 27 additions and 2 deletions

17
flake.lock generated
View file

@ -805,6 +805,22 @@
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
}
},
"rollback": {
"locked": {
"lastModified": 1764836381,
"narHash": "sha256-8jemYbbW9EBttQKHep7Rj8kzXaxsrk/lACdXA2DN5Xk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ff06bd3398fb1bea6c937039ece7e7c8aa396ebf",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"dankMaterialShell": "dankMaterialShell",
@ -821,6 +837,7 @@
"nvim-dots": "nvim-dots",
"pinix": "pinix",
"quickshell": "quickshell",
"rollback": "rollback",
"unstable": "unstable"
}
},

View file

@ -74,6 +74,10 @@
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
rollback = {
url = "github:NixOS/nixpkgs/nixos-25.05";
};
};
outputs = {
@ -132,6 +136,10 @@
dmsCli = inputs.dankMaterialShell.packages.${system}.default;
dankMaterialShell = inputs.dankMaterialShell.packages.${system}.dankMaterialShell;
pinix = inputs.pinix.packages.${system}.default;
nvidiaRollback = import inputs.rollback {
inherit system;
config.allowUnfree = true;
};
})
(final: prev: {
inherit

View file

@ -6,10 +6,10 @@
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
package = pkgs.nvidiaRollback.linuxPackages.nvidiaPackages.stable;
open = true;
modesetting.enable = true; # must be true for Wayland
powerManagement.enable = false; # laptops need this
powerManagement.enable = false;
nvidiaSettings = true;
nvidiaPersistenced = true;
};