30 lines
669 B
Nix
30 lines
669 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
services.greetd = {
|
|
enable = config.system.desktop.enable;
|
|
restart = true;
|
|
settings = {
|
|
terminal = {
|
|
vt = 2;
|
|
switch = true;
|
|
};
|
|
default_session.command = ''
|
|
${pkgs.greetd.tuigreet}/bin/tuigreet --remember --remember-user-session --user-menu --asterisks --sessions /etc/greetd/environments
|
|
'';
|
|
};
|
|
};
|
|
|
|
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
|
|
'';
|
|
};
|
|
}
|