git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "services.xserver: assert that either desktop- or window manager is not "none""

This reverts commit 93c54acf97077567e8d6135a36f191e872b26692. This reopens #30517 @nbp @Ma27 Breaking people's config for this is hardly reasonable as is. If it absolutely cannot be avoided, at the very least, we need to provide clear instructions on what people need to upgrade in their config. I actually had to bisect to the commit, to even find out what property I should change or define, as the error message was useless. It didn't even mention a property name. Discussion on the PR seems to be ongoing, so I'm reverting this, so we don't break people's systems on unstable.

commite64dc2543458b52abcd913bad87851f5d7db435d authorHerwig Hochleitner <herwig@bendlas.net> dateSat 4 Nov 2017, 19:06 (9 years ago) parent7be7698
3 files changed+2−22
nixos/doc/manual/release-notes/rl-1803.xml−8 nixos/modules/services/x11/desktop-managers/default.nix+2−2 nixos/modules/services/x11/xserver.nix−12
nixos/doc/manual/release-notes/rl-1803.xml−8
@@ -90,14 +90,6 @@ following incompatible changes:</para>
9090 That means that old configuration is not overwritten by default when update to the znc options are made.
9191 </para>
9292 </listitem>
93− <listitem>
94− <para>
95− The option <option>services.xserver.desktopManager.default</option> is now <literal>none</literal> by default.
96− An assertion failure is thrown if WM's and DM's default are <literal>none</literal>.
97− To explicitly run a plain X session without and DM or WM, the newly introduced option <option>services.xserver.plainX</option>
98− must be set to true.
99− </para>
100− </listitem>
10193</itemizedlist>
10294
10395</section>
nixos/modules/services/x11/desktop-managers/default.nix+2−2
@@ -87,8 +87,8 @@ in
8787
8888 default = mkOption {
8989 type = types.str;
90− default = "none";
91− example = "plasma5";
90+ default = "";
91+ example = "none";
9292 description = "Default desktop manager loaded if none have been chosen.";
9393 apply = defaultDM:
9494 if defaultDM == "" && cfg.session.list != [] then
nixos/modules/services/x11/xserver.nix−12
@@ -161,15 +161,6 @@ in
161161 '';
162162 };
163163
164− plainX = mkOption {
165− type = types.bool;
166− default = false;
167− description = ''
168− Whether the X11 session can be plain (without DM/WM) and
169− the Xsession script will be used as fallback or not.
170− '';
171− };
172−
173164 autorun = mkOption {
174165 type = types.bool;
175166 default = true;
@@ -561,9 +552,6 @@ in
561552 + "${toString (length primaryHeads)} heads set to primary: "
562553 + concatMapStringsSep ", " (x: x.output) primaryHeads;
563554 })
564− { assertion = cfg.desktopManager.default == "none" && cfg.windowManager.default == "none" -> cfg.plainX;
565− message = "Either the desktop manager or the window manager shouldn't be `none`! To explicitly allow this, you can also set `services.xserver.plainX` to `true`.";
566− }
567555 ];
568556
569557 environment.etc =