fix: configure GDM auto-login for workshop user

- Use GDM-specific autoLogin instead of generic displayManager autoLogin
- Auto-login as workshop user instead of root to properly start GNOME session
- Remove conflicting generic autoLogin from flake.nix
- Keep gnome-terminal sessionCommands for workshop terminal
This commit is contained in:
2025-09-15 14:16:29 +02:00
parent e291457e11
commit ed959141e7
2 changed files with 11 additions and 10 deletions

View File

@@ -113,15 +113,10 @@
"-device"
"virtio-net,netdev=net0"
];
# Fix the auto-login conflict with mkForce
services.displayManager.autoLogin = lib.mkForce {
enable = true;
user = "root";
};
# Keep GUI session commands for when GUI is used
services.xserver.displayManager.sessionCommands = ''
${pkgs.gnome-terminal}/bin/gnome-terminal --full-screen --title="Workshop Terminal" &
'';
# Keep GUI session commands for when GUI is used
services.xserver.displayManager.sessionCommands = ''
${pkgs.gnome-terminal}/bin/gnome-terminal --full-screen --title="Workshop Terminal" &
'';
}
)
];