From a5635ffcb72893ed7b02151e7cfd4db0ab95a5db Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 24 Mar 2026 08:49:42 +0100 Subject: [PATCH] nixos/getty: revert overzealous assertion It is not true that autoLoginUser has no effect when loginOptions is set. Partial revert of be703cf473ba ("nixos/kmscon: run agetty under kmscon"). --- nixos/modules/services/ttys/getty.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nixos/modules/services/ttys/getty.nix b/nixos/modules/services/ttys/getty.nix index 73db27519aa5..01d2858602b6 100644 --- a/nixos/modules/services/ttys/getty.nix +++ b/nixos/modules/services/ttys/getty.nix @@ -132,12 +132,6 @@ in ###### implementation config = mkIf config.console.enable { - assertions = [ - { - assertion = cfg.loginOptions != null -> cfg.autologinUser == null; - message = "services.getty.autoLoginUser has no effect when services.getty.loginOptions is set."; - } - ]; # Note: this is set here rather than up there so that changing # nixos.label would not rebuild manual pages services.getty.greetingLine = mkDefault ''<<< Welcome to ${config.system.nixos.distroName} ${config.system.nixos.label} (\m) - \l >>>'';