2024-09-02 18:16:22 -07:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2024-08-09 02:09:01 -07:00
|
|
|
services.greetd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
default_session = {
|
2024-11-11 18:15:37 -08:00
|
|
|
command = ''
|
2024-11-12 16:55:09 -08:00
|
|
|
${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland --remember --greeting "Welcome, generation $(readlink /nix/var/nix/profiles/system | grep -o '[0-9]*'). Access is restricted to authorized personnel only."
|
2024-11-11 18:15:37 -08:00
|
|
|
'';
|
2024-08-09 02:09:01 -07:00
|
|
|
user = "greeter";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.services.greetd.serviceConfig = {
|
|
|
|
Type = "idle";
|
|
|
|
StandardInput = "tty";
|
|
|
|
StandardOutput = "tty";
|
|
|
|
StandardError = "journal"; # Without this errors will spam on screen
|
|
|
|
# Without these bootlogs will spam on screen
|
|
|
|
TTYReset = true;
|
|
|
|
TTYVHangup = true;
|
|
|
|
TTYVTDisallocate = true;
|
|
|
|
};
|
|
|
|
}
|