Here is the problematic file in my config, if I uncomment the code to make the vgpu config into a specialisation:
#specialisation."vgpu".configuration = {
# environment.etc.specialisation.text = "vgpu";
# ...
# };
it fails with
error:
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:37:12:
36|
37| strict = derivationStrict drvAttrs;
| ^
38|
… while evaluating derivation 'nixos-system-hyrulecastle-25.05.20250804.ce01dae'
whose name attribute is located at /nix/store/5jrv34dcsm9zjl666ann69sw5k4rv30w-source/pkgs/stdenv/generic/make-derivation.nix:480:13
… while evaluating attribute 'buildCommand' of derivation 'nixos-system-hyrulecastle-25.05.20250804.ce01dae'
at /nix/store/5jrv34dcsm9zjl666ann69sw5k4rv30w-source/nixos/modules/system/activation/top-level.nix:68:7:
67| passAsFile = [ "extraDependencies" ];
68| buildCommand = systemBuilder;
| ^
69|
… while evaluating the option `system.systemBuilderCommands':
… while evaluating definitions from `/nix/store/5jrv34dcsm9zjl666ann69sw5k4rv30w-source/nixos/modules/system/activation/specialisation.nix':
… while evaluating the option `specialisation.vgpu.configuration.system.build.toplevel':
… while evaluating definitions from `/nix/store/5jrv34dcsm9zjl666ann69sw5k4rv30w-source/nixos/modules/system/activation/top-level.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error:
Failed assertions:
- vGPU-Unlock-patcher is not supported for vGPU version 550.90.05
If I use a vgpu4nixos input fork without assertion, it also fails, so it’s probably not an assertions problem. It might have to do with vgpu4nixos overriding nvidia kernel modules:
# in utils.nix
overlayNvidiaPackages =
args:
(self: super: {
linuxKernel = super.linuxKernel // {
packagesFor =
kernel:
(super.linuxKernel.packagesFor kernel).extend (
_: super': {
nvidiaPackages = super'.nvidiaPackages.extend (_: _: args);
}
);
};
});
But I’m at a lost