34 lines
887 B
Nix
34 lines
887 B
Nix
|
{
|
||
|
inputs,
|
||
|
pkgs,
|
||
|
config',
|
||
|
...
|
||
|
}: let
|
||
|
greeter = "gtkgreet";
|
||
|
|
||
|
hyprlandConfig = pkgs.writeText "greetd-hyprland-config" ''
|
||
|
workspace=1,default:true,gapsout:0,gapsin:0,border:false,decorate:false
|
||
|
|
||
|
exec-once=systemctl --user stop waybar.service
|
||
|
exec-once=[workspace 1;fullscreen;noanim] ${pkgs.greetd.${greeter}}/bin/${greeter} -l; hyprctl dispatch exit
|
||
|
exec-once=hyprctl dispatch focuswindow gtkgreet
|
||
|
'';
|
||
|
in {
|
||
|
services.greetd = {
|
||
|
enable = true;
|
||
|
settings.default_session = {
|
||
|
command = "${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/Hyprland --config ${hyprlandConfig}";
|
||
|
user = config'.username;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
environment.etc = {
|
||
|
"greetd/environments".text = ''
|
||
|
Hyprland
|
||
|
sway
|
||
|
zsh
|
||
|
shutdown now
|
||
|
'';
|
||
|
};
|
||
|
}
|