Closed candeira closed 5 years ago
It's a warning (trace) not an error, but that's obviously not very clear (my bad), so installing and then running gnome should work fine. Introduced in this PR https://github.com/NixOS/nixpkgs/pull/43992 where we've moved away from making a custom session file in favor of using what upstream offers.
@jtojnar suggests a fix to eliminate the warning here which we should probably do (and backport to 18.09).
GDM ignores desktopManager.default
at the moment btw. Fixing this might be doable, but would probably involve quite a bit of work. Warning about this would be good, but I don't think it's easy to check if desktopManager.default
have been explicitly set by the user.
So for now it's better to not specify desktopManager.default
when using GDM, that should remove the warning. GDM will pick the gnome sesssion by default I believe and will definitely remember your last session choice.
Oh, thanks. I'll try an update now.
Issue description
Error says gnome3 Desktop Manager is not found when trying to upgrade from 18.03 to 18.09.
Steps to reproduce
[root@desire:/etc/nixos]# nix-channel --update nixos unpacking channels...
[root@desire:/etc/nixos]# nixos-rebuild switch building Nix... building the system configuration... trace: Default desktop manager (gnome3) not found at evaluation time. These are the known valid session names: services.xserver.desktopManager.default = "xterm"; services.xserver.desktopManager.default = "none"; It's also possible the default can be found in one of these packages: gnome-session-3.28.1
[root@desire:/etc/nixos]# nix-shell -p nix-info --run "nix-info -m"
"x86_64-linux"
Linux 4.14.68, NixOS, 18.03.git.dbdcdd3 (Impala)
yes
yes
nix-env (Nix) 2.0.4
"nixos-18.09-18.09beta230.32c008a946c"
"nixos-18.09"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
The relevant part of /etc/nixos/configuration.nix: