greetd: fixed failure to start with blank initial_session

This commit is contained in:
Aly Raffauf 2024-05-02 19:00:26 -04:00
parent fe1ee27b8f
commit fb75cd9ec9

View file

@ -29,18 +29,22 @@
services = { services = {
greetd = { greetd = {
enable = true; enable = true;
settings = rec { settings =
default_session = { if config.alyraffauf.desktop.greetd.autologin.enable
command = lib.mkDefault "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.alyraffauf.desktop.greetd.session}"; then {
}; default_session = {
initial_session = command = lib.mkDefault "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.alyraffauf.desktop.greetd.session}";
if config.alyraffauf.desktop.greetd.autologin.enable };
then { initial_session = {
command = config.alyraffauf.desktop.greetd.session; command = config.alyraffauf.desktop.greetd.session;
user = config.alyraffauf.desktop.greetd.autologin.user; user = config.alyraffauf.desktop.greetd.autologin.user;
} };
else {}; }
}; else {
default_session = {
command = lib.mkDefault "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.alyraffauf.desktop.greetd.session}";
};
};
}; };
}; };
}; };