I currently use Nix and home-manager on top of Arch Linux.
I have the following GPU set-up in my home-manager configuration:
nixpkgs.config.nvidia.acceptLicense = true;
targets.genericLinux = {
enable = true;
gpu = {
enable = true;
nvidia = {
enable = true;
sha256 = "sha256-NiA7iWC35JyKQva6H1hjzeNKBek9KyS3mK8G3YRva4I=";
version = "595.71.05";
};
};
};
This is following advice from https://nix-community.github.io/home-manager/#sec-usage-gpu-nvidia
This had been working fine until a recent nixpkgs input update (i.e. nix flake update). With all nixpkgs after revision 9cadaf6932b7c926e468f777549d57f04a7212da (which works fine) I get the following error:
error:
… while calling the 'derivationStrict' builtin
at «nix-internal»/derivation-internal.nix:37:12:
36|
37| strict = derivationStrict drvAttrs;
| ^
38|
… while evaluating derivation 'home-manager-generation'
whose name attribute is located at «github:nixos/nixpkgs/15f4ee454b1dce334612fa6843b3e05cf546efab?narHash=sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM%2BZ4%3D»/pkgs/stdenv/generic/make-derivation.nix:535:11
… while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
at «github:nixos/nixpkgs/15f4ee454b1dce334612fa6843b3e05cf546efab?narHash=sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM%2BZ4%3D»/pkgs/build-support/trivial-builders/default.nix:80:17:
79| enableParallelBuilding = true;
80| inherit buildCommand name;
| ^
81| passAsFile = [ "buildCommand" ] ++ (derivationArgs.passAsFile or [ ]);
… while evaluating the option `home.activation.checkExistingGpuDrivers.data':
… while evaluating definitions from `/nix/store/ixgab494sxxyrb4ws08pgm05ms5rr3n7-source/modules/targets/generic-linux/gpu':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: function 'anonymous lambda' called with unexpected argument 'kernel'
at «github:nixos/nixpkgs/15f4ee454b1dce334612fa6843b3e05cf546efab?narHash=sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM%2BZ4%3D»/pkgs/os-specific/linux/nvidia-x11/generic.nix:34:1:
33|
34| {
| ^
35| lib,
The version and sha256 values in my configuration are correct for the version of the Nvidia drivers installed in Arch. Also the home-manager nixpkgs input is set to follow my main nixpkgs input in flake.nix. As mentioned, this all works fine until I use a newer revision of nixpkgs.
Any ideas?
u/polaris64 — 11 days ago