diff --git a/modules/nixos/desktop/wayland/greetd/default.nix b/modules/nixos/desktop/wayland/greetd/default.nix index eea5335..8bc098f 100755 --- a/modules/nixos/desktop/wayland/greetd/default.nix +++ b/modules/nixos/desktop/wayland/greetd/default.nix @@ -2,6 +2,7 @@ config, flake, lib, + pkgs, ... }: let @@ -13,6 +14,7 @@ let inherit (flake.config.machines) devices; venus = devices.venus.name; charon = devices.charon.name; + mars = devices.mars.name; host = config.networking.hostName; in @@ -21,25 +23,20 @@ in greetd = { enable = true; vt = 7; - settings = - let - default_session = { - command = "${lib.meta.getExe config.programs.hyprland.package}"; - user = - if host == charon then - user1 - else if host == venus then - user2 - else - user0; - }; - in - { - inherit - default_session - ; - initial_session = default_session; + settings = { + default_session = { + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --time-format '%I:%M %p | %a • %h | %F' --theme border=magenta;text=cyan;prompt=green;time=red;action=blue;button=yellow;container=black;input=red --cmd Hyprland"; + user = + if host == mars then + "greeter" + else if host == charon then + user1 + else if host == venus then + user2 + else + user0; }; + }; }; }; }