diff options
| author | Henry J. Webster <hwebs@hwebs.info> | 2026-07-31 09:51:20 -0500 |
|---|---|---|
| committer | Henry J. Webster <hwebs@hwebs.info> | 2026-07-31 09:51:20 -0500 |
| commit | 9cba5e7886b326bfec049c4ca5024274e4b8e201 (patch) | |
| tree | 57810aa48299dcf66c59cd7b30090af550336d37 /profiles/desktop.nix | |
| parent | 2b2e0cc61537fefdddf81f982668d43fe89c0d2f (diff) | |
desktop: start bar+wallpaper via systemd; fortune greeter
Move the niri bar (yambar on enzo, waybar on kusanagi) and swaybg wallpaper out
of the shared stowed niri config and into per-machine systemd user services
bound to graphical-session.target, mirroring the existing xdg-user-dirs-update
unit. This makes the bar host-correct (kusanagi previously spawned yambar, which
isn't installed there) and keeps host-specific paths out of the shared config.
Also switch the greetd session to a small wrapper script that shows a fortune
greeting in tuigreet.
Assisted-by: Claude:claude-opus-4-8
Diffstat (limited to 'profiles/desktop.nix')
| -rw-r--r-- | profiles/desktop.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/profiles/desktop.nix b/profiles/desktop.nix index 6d7d465..f84b2de 100644 --- a/profiles/desktop.nix +++ b/profiles/desktop.nix @@ -7,6 +7,14 @@ # and per-user groups live in the machine files. { pkgs, ... }: +let + greeter = pkgs.writeShellScript "tuigreet-fortune" '' + exec ${pkgs.tuigreet}/bin/tuigreet \ + --time --remember \ + --greeting "$(${pkgs.fortune}/bin/fortune)" \ + --cmd niri-session + ''; +in { # --- Session / login --- programs.niri.enable = true; @@ -38,7 +46,7 @@ services.greetd = { enable = true; settings.default_session = { - command = "${pkgs.tuigreet}/bin/tuigreet --time --remember --cmd niri-session"; + command = "${greeter}"; user = "greeter"; }; }; |
