theming for seatd tuigreet

This commit is contained in:
Geir Okkenhaug Jerstad 2025-07-03 22:32:19 +02:00
parent 26507807cf
commit 9576b67d91

View file

@ -18,8 +18,14 @@ with lib; {
tuigreetCommand = mkOption { tuigreetCommand = mkOption {
type = types.str; type = types.str;
default = "${pkgs.zsh}/bin/zsh"; default = "${pkgs.niri}/bin/niri";
description = "Command to execute after login via tuigreet"; description = "Command to execute after login via tuigreet (default: niri)";
};
tuigreetTheme = mkOption {
type = types.str;
default = "border=magenta;text=cyan;prompt=green;time=red;action=blue;button=yellow;container=black;input=red";
description = "Custom theme string for tuigreet (see tuigreet README for options)";
}; };
}; };
@ -29,7 +35,7 @@ with lib; {
enable = true; enable = true;
settings = { settings = {
default_session = { default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd ${config.services.seatd-clean.tuigreetCommand}"; command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --remember --theme '${config.services.seatd-clean.tuigreetTheme}' --cmd ${config.services.seatd-clean.tuigreetCommand}";
user = "greeter"; user = "greeter";
}; };
}; };