nix/modules/wm/gdm/default.nix

22 lines
507 B
Nix
Raw Permalink 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-12-22 15:06:55 +01:00
services.displayManager.defaultSession = "hyprland";
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
}