fix(binto): lock nvidia driver / kernel version to working one
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
24e82e3229
commit
1406553af2
3 changed files with 36 additions and 3 deletions
|
@ -2,14 +2,20 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
|
nixpkgs-nvidia,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nvidiaPkgs = import nixpkgs-nvidia {
|
||||||
|
inherit (pkgs) system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_zen;
|
kernelPackages = nvidiaPkgs.linuxPackages_zen;
|
||||||
|
|
||||||
kernelParams = ["amd_pstate=active"];
|
kernelParams = ["amd_pstate=active"];
|
||||||
kernelModules = ["kvm-amd"];
|
kernelModules = ["kvm-amd"];
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -969,6 +969,22 @@
|
||||||
"type": "github"
|
"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": {
|
"nixpkgs-pacemaker": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1707746079,
|
"lastModified": 1707746079,
|
||||||
|
@ -1421,6 +1437,7 @@
|
||||||
"nix-melt": "nix-melt",
|
"nix-melt": "nix-melt",
|
||||||
"nix-on-droid": "nix-on-droid",
|
"nix-on-droid": "nix-on-droid",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_4",
|
||||||
|
"nixpkgs-nvidia": "nixpkgs-nvidia",
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||||
"nms": "nms",
|
"nms": "nms",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -202,6 +202,16 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Desktop inputs
|
# 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 = {
|
hyprland = {
|
||||||
type = "github";
|
type = "github";
|
||||||
owner = "hyprwm";
|
owner = "hyprwm";
|
||||||
|
|
Loading…
Reference in a new issue