nixos-26.05 #7
@@ -49,13 +49,23 @@
|
|||||||
security.polkit.enable = true; # Required for nextcloud
|
security.polkit.enable = true; # Required for nextcloud
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
"nvidia-x11"
|
"nvidia-kernel-modules"
|
||||||
"nvidia-settings"
|
"nvidia-settings"
|
||||||
|
"nvidia-x11"
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
open = false;
|
open = false;
|
||||||
|
# https://github.com/sircam-html/nixos-conf/blob/main/guides/nvidia-nixos-guide.md
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
||||||
|
version = "580.142";
|
||||||
|
sha256_64bit = "sha256-IJFfzz/+icNVDPk7YKBKKFRTFQ2S4kaOGRGkNiBEdWM=";
|
||||||
|
sha256_aarch64 = "sha256-0000000000000000000000000000000000000000000=";
|
||||||
|
openSha256 = "sha256-0000000000000000000000000000000000000000000=";
|
||||||
|
settingsSha256 = "sha256-BnrIlj5AvXTfqg/qcBt2OS9bTDDZd3uhf5jqOtTMTQM=";
|
||||||
|
persistencedSha256 = "sha256-0000000000000000000000000000000000000000000=";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user