nixos/xserver: don't require polkit

X11 itself does not require it and it a desktop environment or any other
service requires it, then it should enable it itself.
This commit is contained in:
Martin Weinelt 2022-01-26 21:12:42 +01:00
parent 4f593e7cdf
commit 77e345142b
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -620,9 +620,6 @@ in
in optional (driver != null) ({ inherit name; modules = []; driverName = name; display = true; } // driver));
assertions = [
{ assertion = config.security.polkit.enable;
message = "X11 requires Polkit to be enabled (security.polkit.enable = true).";
}
(let primaryHeads = filter (x: x.primary) cfg.xrandrHeads; in {
assertion = length primaryHeads < 2;
message = "Only one head is allowed to be primary in "