From dff1cffcafb180afe8a6ac564d7bc66eda95ab77 Mon Sep 17 00:00:00 2001 From: Chen Chengjun Date: Thu, 11 Dec 2025 09:38:54 +0000 Subject: [PATCH] Avoid enabling getty@tty1.service when enabling xfce --- distro/etc_nixos/modules/xfce/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/distro/etc_nixos/modules/xfce/default.nix b/distro/etc_nixos/modules/xfce/default.nix index d4e985fd3..6bd79a4d9 100644 --- a/distro/etc_nixos/modules/xfce/default.nix +++ b/distro/etc_nixos/modules/xfce/default.nix @@ -15,6 +15,10 @@ in { description = "XFCE Desktop Environment"; after = [ "getty.target" ]; wantedBy = [ "multi-user.target" ]; + # XFCE needs exclusive access to tty1 to prevent the getty login prompt + # from interfering with the graphical display. This conflict ensures + # that getty@tty1.service does not run alongside the XFCE desktop. + conflicts = [ "getty@tty1.service" ]; serviceConfig = { Environment = "DISPLAY=:0"; ExecStart = "${startXfce}/bin/start_xfce";