fix(binto): lock nvidia driver / kernel version to working one
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-03-08 16:59:41 -05:00
parent 24e82e3229
commit 1406553af2
3 changed files with 36 additions and 3 deletions

View file

@ -2,14 +2,20 @@
config,
lib,
modulesPath,
nixpkgs-nvidia,
pkgs,
...
}: {
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}: let
nvidiaPkgs = import nixpkgs-nvidia {
inherit (pkgs) system;
config.allowUnfree = true;
};
in {
nixpkgs.hostPlatform = "x86_64-linux";
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot = {
kernelPackages = pkgs.linuxPackages_zen;
kernelPackages = nvidiaPkgs.linuxPackages_zen;
kernelParams = ["amd_pstate=active"];
kernelModules = ["kvm-amd"];

View file

@ -969,6 +969,22 @@
"type": "github"
}
},
"nixpkgs-nvidia": {
"locked": {
"lastModified": 1709237383,
"narHash": "sha256-cy6ArO4k5qTx+l5o+0mL9f5fa86tYUX3ozE1S+Txlds=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "1536926ef5621b09bba54035ae2bb6d806d72ac8",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "1536926ef5621b09bba54035ae2bb6d806d72ac8",
"type": "github"
}
},
"nixpkgs-pacemaker": {
"locked": {
"lastModified": 1707746079,
@ -1421,6 +1437,7 @@
"nix-melt": "nix-melt",
"nix-on-droid": "nix-on-droid",
"nixpkgs": "nixpkgs_4",
"nixpkgs-nvidia": "nixpkgs-nvidia",
"nixpkgs-wayland": "nixpkgs-wayland",
"nms": "nms",
"nur": "nur",

View file

@ -202,6 +202,16 @@
};
# Desktop inputs
nixpkgs-nvidia = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
# This was the last commit where my nvidia drivers
# were working correctly while gaming
rev = "1536926ef5621b09bba54035ae2bb6d806d72ac8";
};
hyprland = {
type = "github";
owner = "hyprwm";