From faa2a7aa66513015e9bb3eadacbd99399f70370e Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 14 Feb 2026 22:33:23 -0500 Subject: [PATCH] fix(greetd): use better approach --- hosts/xps15/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/xps15/configuration.nix b/hosts/xps15/configuration.nix index a1531d8..83deba7 100644 --- a/hosts/xps15/configuration.nix +++ b/hosts/xps15/configuration.nix @@ -7,6 +7,9 @@ let tuigreet = lib.getExe pkgs.greetd.tuigreet; + loginShell = pkgs.writeShellScript "login-shell" '' + exec $(getent passwd $(id -un) | cut -d: -f7) -l + ''; in { imports = [ @@ -108,7 +111,7 @@ in enable = true; vt = 1; settings.default_session = { - command = "${tuigreet} --time --asterisks --cmd 'sh -c \"exec $(getent passwd $(id -un) | cut -d: -f7) -l\"' --theme 'border=dark-gray;text=white;prompt=blue;time=dark-gray;action=dark-gray;button=blue;container=black;input=white'"; + command = "${tuigreet} --time --asterisks --cmd ${loginShell} --theme 'border=dark-gray;text=white;prompt=blue;time=dark-gray;action=dark-gray;button=blue;container=black;input=white'"; user = "greeter"; }; };