user-1@kaktus ~ [1]> sudo nixos-rebuild switch --flake /etc/nixos --no-reexec
building the system configuration...
warning: Git tree '/etc/nixos' is dirty
error:
β¦ while calling the 'head' builtin
at /nix/store/rcsmdj802sk3w9l8m0b0bvdy0jiw2wgr-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/rcsmdj802sk3w9l8m0b0bvdy0jiw2wgr-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/rcsmdj802sk3w9l8m0b0bvdy0jiw2wgr-source/nixos/modules/system/activation/top-level.nix':
β¦ while evaluating the option `system.systemBuilderArgs':
β¦ while evaluating definitions from `/nix/store/rcsmdj802sk3w9l8m0b0bvdy0jiw2wgr-source/nixos/modules/system/activation/activatable-system.nix':
β¦ while evaluating the option `system.activationScripts.etc.text':
β¦ while evaluating definitions from `/nix/store/rcsmdj802sk3w9l8m0b0bvdy0jiw2wgr-source/nixos/modules/system/etc/etc-activation.nix':
β¦ while evaluating definitions from `/nix/store/rcsmdj802sk3w9l8m0b0bvdy0jiw2wgr-source/nixos/modules/system/etc/etc.nix':
β¦ while evaluating the option `environment.etc.dbus-1.source':
β¦ while evaluating the option `environment.systemPackages':
β¦ while evaluating definitions from `/nix/store/rcsmdj802sk3w9l8m0b0bvdy0jiw2wgr-source/nixos/modules/services/desktop-managers/plasma6.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: undefined variable 'aurorae'
at /nix/store/rcsmdj802sk3w9l8m0b0bvdy0jiw2wgr-source/nixos/modules/services/desktop-managers/plasma6.nix:150:11:
149| optionalPackages = [
150| aurorae
| ^
151| plasma-browser-integration
Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '/etc/nixos#nixosConfigurations."kaktus".config.system.build.toplevel' --no-link' returned non-zero exit status 1.
user-1@kaktus ~ [1]>
Judging by the date (today is October 17, 2025) and the context of your problem, you most likely have NixOS 24.11 or earlier, and you are trying to get Plasma 6, which at that time was only available in nixos-unstable.
Share your flake.nix, too, we should fix that pkgs-stable pointing at an ancient nixpkgs version. Or your whole configuration, the existence of that input suggests there will be more issues.
user-1@kaktus ~> plasmashell --version
plasmashell 6.4.5
QThreadStorage: entry 8 destroyed before end of thread 0xb5fdaf0
QThreadStorage: entry 2 destroyed before end of thread 0xb5fdaf0
QThreadStorage: entry 1 destroyed before end of thread 0xb5fdaf0
user-1@kaktus ~>