nixos/services/greetd: fix formatting

This commit is contained in:
Anthony Rodriguez 2024-12-27 16:12:49 +01:00
parent 210ed38295
commit 46542a2c19
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -56,15 +56,15 @@ in {
}; };
environment.etc."greetd/environments".text = lib.strings.concatStringsSep "\n" [ environment.etc."greetd/environments".text = lib.strings.concatStringsSep "\n" [
(lib.optionalString (
lib.optionalString
config.programs.hyprland.enable config.programs.hyprland.enable
( (
if config.programs.hyprland.withUWSM if config.programs.hyprland.withUWSM
then "uwsm start -S hyprland-uwsm.desktop" then "uwsm start -S hyprland-uwsm.desktop"
else "Hyprland" else "Hyprland"
)) )
(lib.optionalString )
config.programs.sway.enable (lib.optionalString config.programs.sway.enable "sway")
"sway")
]; ];
} }