nix/modules/wm/gdm/default.nix

21 lines
450 B
Nix
Raw Normal View History

2024-11-24 21:35:15 +01:00
{
username,
lib,
config,
...
}: {
options = {
gdm.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.gdm.enable {
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
2024-08-31 16:04:57 +02:00
2024-11-24 21:35:15 +01:00
services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = username;
2024-08-31 16:04:57 +02:00
2024-11-24 21:35:15 +01:00
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;
};
2024-08-31 16:04:57 +02:00
}