Closed tehmatt closed 5 months ago
@tehmatt FYI I just tested your approach locally and it does not work:
error: anonymous function at /nix/store/4g5j0mzm3razs9gxv9ijnaw5swvpfjgl-nixpkgs-src/pkgs/os-specific/linux/nvidia-x11/generic.nix:30:1 called with unexpected argument 'useSettings'
AFAICS the problem is that useSettings
is part of the "outer" function in https://github.com/NixOS/nixpkgs/edit/master/pkgs/os-specific/linux/nvidia-x11/generic.nix, while we're calling the "inner" function in that file in nixGL.nix.
I'm getting the same error on my xps-9650. I had to remove the Nvidia driver to rebuild.
I'm getting the same error since yesterday.
Seems it been reverted in nixpkgs:master
, however nix-channel --update && nix-env -u
does not help for me.
Both nix-env -iA nixgl.auto.nixGLDefault
and home-manager switch
shows the same error.
My nix-channel --list
is:
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz
nixgl https://github.com/guibou/nixGL/archive/main.tar.gz
Fixed that by explicitly adding nixpkgs-unstable
channel. Works fine with the following channels:
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz
nixgl https://github.com/guibou/nixGL/archive/main.tar.gz
nixpkgs https://nixos.org/channels/nixpkgs-unstable
Also works with the following flake inputs:
{
...
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixgl.url = "github:guibou/nixGL";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
...
}
Fixed upstream.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/home-manager-selective-update-of-packages-possible/39199/1
I'm using
nixGL@HEAD
andnixpkgs-unstable@HEAD
withhome-manager
. Runninghome-manager switch
fails with the assertionassert useSettings -> !libsOnly;
.A recent PR (https://github.com/NixOS/nixpkgs/pull/278915) looks like it caused this. My uninformed guess is that
nixGL
should be explicitly settinguseSettings
to false near https://github.com/nix-community/nixGL/blob/489d6b095ab9d289fe11af0219a9ff00fe87c7c5/nixGL.nix#L87.Raw stack-trace: