nixos/gdm: simplify assert expression
This commit is contained in:
parent
f2271f7c19
commit
41ae7e00d7
@ -69,8 +69,7 @@ in
|
|||||||
config = mkIf cfg.gdm.enable {
|
config = mkIf cfg.gdm.enable {
|
||||||
|
|
||||||
assertions = [
|
assertions = [
|
||||||
{ assertion = let autoLogin = cfg.gdm.autoLogin; in
|
{ assertion = cfg.gdm.autoLogin.enable -> cfg.gdm.autoLogin.user != null;
|
||||||
if autoLogin.enable then autoLogin.user != null else true;
|
|
||||||
message = "GDM auto-login requires services.xserver.displayManager.gdm.autoLogin.user to be set";
|
message = "GDM auto-login requires services.xserver.displayManager.gdm.autoLogin.user to be set";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user