2024-12-06 04:03:03 -05:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.greetd = {
|
|
|
|
enable = config.system.desktop.enable;
|
|
|
|
restart = true;
|
|
|
|
settings = {
|
|
|
|
terminal = {
|
|
|
|
vt = 2;
|
|
|
|
switch = true;
|
|
|
|
};
|
2024-12-06 17:49:20 -05:00
|
|
|
default_session.command = ''
|
|
|
|
${pkgs.greetd.tuigreet}/bin/tuigreet --remember --remember-user-session --user-menu --asterisks --sessions /etc/greetd/environments
|
|
|
|
'';
|
2024-12-06 04:03:03 -05:00
|
|
|
};
|
|
|
|
};
|
2024-12-06 17:49:20 -05:00
|
|
|
|
|
|
|
environment.etc = {
|
|
|
|
"greetd/environments/sway.desktop".text = ''
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=Sway
|
|
|
|
Exec=sway --unsupported-gpu
|
|
|
|
'';
|
|
|
|
"greetd/environments/niri.desktop".text = ''
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=Niri
|
|
|
|
Exec=niri-session
|
|
|
|
'';
|
2024-12-08 06:41:06 -05:00
|
|
|
"greetd/environments/hyprland.desktop".text = ''
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=Hyprland
|
|
|
|
Exec=Hyprland
|
|
|
|
'';
|
2024-12-06 17:49:20 -05:00
|
|
|
};
|
2024-12-06 04:03:03 -05:00
|
|
|
}
|