Even after adding unfree packages and nvidia license acceptance to true, Still I’m getting this following error.
Note: I have added unfree and nvidia accept license in both places:
ksvnixospcconfigs/configuration.nix at 0f8fa33c56d11010988388ce5d5a233657ab551a · vivekanandan-ks/ksvnixospcconfigs · GitHub
Error:
nh os boot -a /home/ksvnixospc/Documents/ksvnixospcconfigs/
> Building NixOS configuration
evaluation warning: You have set specialArgs.pkgs, which means that options like nixpkgs.config
and nixpkgs.overlays will be ignored. If you wish to reuse an already created
pkgs, which you know is configured correctly for this NixOS configuration,
please import the `nixosModules.readOnlyPkgs` module from the nixpkgs flake or
`(modulesPath + "/misc/nixpkgs/read-only.nix"), and set `{ nixpkgs.pkgs = <your pkgs>; }`.
This properly disables the ignored options to prevent future surprises.
error:
… while calling the 'head' builtin
at /nix/store/cjjpqrp9xy44j5fjh3mygyxy3i7mslj2-source/lib/attrsets.nix:1696:13:
1695| if length values == 1 || pred here (elemAt values 1) (head values) then
1696| head values
| ^
1697| else
… while evaluating the attribute 'value'
at /nix/store/cjjpqrp9xy44j5fjh3mygyxy3i7mslj2-source/lib/modules.nix:1118:7:
1117| // {
1118| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
1119| inherit (res.defsFinal') highestPrio;
… while evaluating the option `system.build.toplevel':
… while evaluating definitions from `/nix/store/cjjpqrp9xy44j5fjh3mygyxy3i7mslj2-source/nixos/modules/system/activation/top-level.nix':
… while evaluating the option `warnings':
… while evaluating definitions from `/nix/store/cjjpqrp9xy44j5fjh3mygyxy3i7mslj2-source/nixos/modules/system/boot/systemd/tmpfiles.nix':
… while evaluating the option `systemd.tmpfiles.settings.graphics-driver."/run/opengl-driver"."L+".argument':
… while evaluating definitions from `/nix/store/cjjpqrp9xy44j5fjh3mygyxy3i7mslj2-source/nixos/modules/hardware/graphics.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: Use of NVIDIA Software requires license acceptance of the license:
- License For Customer Use of NVIDIA Software [1]
You can express acceptance by setting acceptLicense to true your nixpkgs.config.
Example:
configuration.nix:
nixpkgs.config.allowUnfree = true;
nixpkgs.config.nvidia.acceptLicense = true;
config.nix:
allowUnfree = true;
nvidia.acceptLicense = true;
[1]: https://www.nvidia.com/content/DriverDownloads/licence.php?lang=us
┏━ 1 Errors:
⋮
┃ … while evaluating the option `system.build.toplevel':
┃
┃ … while evaluating definitions from `/nix/store/cjjpqrp9xy44j5fjh3mygyxy3i7mslj2-source/nixos/modules/system/activation/top-level.nix':
┃
┃ … while evaluating the option `warnings':
┃
┃ … while evaluating definitions from `/nix/store/cjjpqrp9xy44j5fjh3mygyxy3i7mslj2-source/nixos/modules/system/boot/systemd/tmpfiles.nix':
┃
┃ … while evaluating the option `systemd.tmpfiles.settings.graphics-driver."/run/opengl-driver"."L+".argument':
┃
┃ … while evaluating definitions from `/nix/store/cjjpqrp9xy44j5fjh3mygyxy3i7mslj2-source/nixos/modules/hardware/graphics.nix':
┃
┃ (stack trace truncated; use '--show-trace' to show the full, detailed trace)
┃
┃ error: Use of NVIDIA Software requires license acceptance of the license:
┃
┃ - License For Customer Use of NVIDIA Software [1]
┃
┃ You can express acceptance by setting acceptLicense to true your nixpkgs.config.
┃ Example:
┃
┃ configuration.nix:
┃ nixpkgs.config.allowUnfree = true;
┃ nixpkgs.config.nvidia.acceptLicense = true;
┃
┃ config.nix:
┃ allowUnfree = true;
┃ nvidia.acceptLicense = true;
┃
┃ [1]: https://www.nvidia.com/content/DriverDownloads/licence.php?lang=us
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 00:49:33 after 10s
Error:
0: Failed to build configuration
1: Command exited with status Exited(1)
Location:
src/commands.rs:693
How to solve this issue?