This error occurs when using nixos-rebuild
You might want to wait for an update of nixpkgs. Alternatively, you could use an older state of nixpkgs. Your distribution (CloverOS, I take it) should guide you how to achieve either.
Which revision of Nixpkgs are you using?
What overlays have you declared?
services.xserver = {
enable = true;
videoDrivers = ["nvidia"];
# X11 keymap
layout = "us";
xkbVariant = "";
};
#NvidiaConfig
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"#nvidia-x11"
];
hardware.nvidia = {
modesetting.enable = true;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.latest;
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
#Flakes
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
};
nixos 23.11
thx,I’ll try it.