greetd(autologin): use UWSM if enabled

This commit is contained in:
Nico 2026-01-10 02:31:08 +11:00
parent 3ac3a823d1
commit c130a6c3ce
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0

View file

@ -6,7 +6,7 @@
enable = true;
settings = {
initial_session = {
command = if (config.programs.niri.enable == true) then "${pkgs.niri}/bin/niri-session" else if (config.programs.hyprland.enable == true) then "${pkgs.hyprland}/bin/Hyprland" else "${pkgs.zsh}/bin/zsh";
command = if (config.programs.uwsm.enable == true) then "${lib.getExe pkgs.uwsm} start default" else if (config.programs.niri.enable == true) then "${pkgs.niri}/bin/niri-session" else if (config.programs.hyprland.enable == true) then "${pkgs.hyprland}/bin/Hyprland" else "${pkgs.zsh}/bin/zsh";
user = "nico";
};
default_session = {