fix: temp fix for nvidia build failure
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
6441ae6548
commit
1b235a4b7e
|
@ -2,12 +2,25 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
|
nixpkgs-nvidia-fix,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
||||||
|
|
||||||
|
# FIXME: remove this once PR reaches unstable
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(self: super: (let
|
||||||
|
patched-pkgs = import nixpkgs-nvidia-fix {
|
||||||
|
inherit (self) system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
linuxPackages_zen = patched-pkgs.linuxPackages_zen;
|
||||||
|
}))
|
||||||
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_zen;
|
kernelPackages = pkgs.linuxPackages_zen;
|
||||||
kernelModules = ["kvm-amd"];
|
kernelModules = ["kvm-amd"];
|
||||||
|
|
|
@ -28,8 +28,7 @@
|
||||||
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||||
powerManagement.finegrained = false;
|
powerManagement.finegrained = false;
|
||||||
|
|
||||||
# FIXME: https://github.com/NVIDIA/open-gpu-kernel-modules/pull/589
|
open = true;
|
||||||
open = false;
|
|
||||||
|
|
||||||
# Enable the Nvidia settings menu,
|
# Enable the Nvidia settings menu,
|
||||||
# accessible via `nvidia-settings`.
|
# accessible via `nvidia-settings`.
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -806,6 +806,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-nvidia-fix": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1706975488,
|
||||||
|
"narHash": "sha256-arYN4yIKU1cN5sde1+hsRNrTsgEIsU+mrwT5N8jX+BQ=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "468a37e6ba01c45c91460580f345d48ecdb5a4db",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "468a37e6ba01c45c91460580f345d48ecdb5a4db",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-pacemaker": {
|
"nixpkgs-pacemaker": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1691894234,
|
"lastModified": 1691894234,
|
||||||
|
@ -1230,6 +1246,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-fix": "nixpkgs-nvidia-fix",
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||||
"nms": "nms",
|
"nms": "nms",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
|
|
|
@ -95,6 +95,14 @@
|
||||||
ref = "nixos-unstable";
|
ref = "nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# FIXME: wait for this rev to reach unstable
|
||||||
|
nixpkgs-nvidia-fix = {
|
||||||
|
type = "github";
|
||||||
|
owner = "NixOS";
|
||||||
|
repo = "nixpkgs";
|
||||||
|
rev = "468a37e6ba01c45c91460580f345d48ecdb5a4db";
|
||||||
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
type = "github";
|
type = "github";
|
||||||
owner = "nix-community";
|
owner = "nix-community";
|
||||||
|
|
Loading…
Reference in a new issue