From c613f5b23418c5b68c6116ec22ce46d1a1fb42a2 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 5 Jun 2026 11:06:01 +0100 Subject: fix(systemd): ship mako.service user unit The nix mako package does not ship a systemd user unit on the user manager's search path, so sway-session.target's Wants=mako.service referenced a non-existent unit after the pacman->nix migration (previously the Arch mako package provided /usr/lib/systemd/user/ mako.service). mako only started on first D-Bus notification, never eagerly at session login. Add a repo-owned mako.service (Type=dbus, org.freedesktop.Notifications) using the absolute nix-profile path, matching the other sway-session units, and register it in systemd-units/user.txt. --- dot_config/systemd/user/mako.service | 17 +++++++++++++++++ systemd-units/user.txt | 1 + 2 files changed, 18 insertions(+) create mode 100644 dot_config/systemd/user/mako.service diff --git a/dot_config/systemd/user/mako.service b/dot_config/systemd/user/mako.service new file mode 100644 index 0000000..caa256d --- /dev/null +++ b/dot_config/systemd/user/mako.service @@ -0,0 +1,17 @@ +[Unit] +Description=Lightweight notification daemon for Wayland +Documentation=man:mako(1) +PartOf=graphical-session.target +After=graphical-session.target +ConditionEnvironment=WAYLAND_DISPLAY + +[Service] +Type=dbus +BusName=org.freedesktop.Notifications +ExecStart=%h/.nix-profile/bin/mako +ExecReload=%h/.nix-profile/bin/makoctl reload +Restart=on-failure +RestartSec=2s + +[Install] +WantedBy=sway-session.target diff --git a/systemd-units/user.txt b/systemd-units/user.txt index 009b2b3..c0dfd0f 100644 --- a/systemd-units/user.txt +++ b/systemd-units/user.txt @@ -7,6 +7,7 @@ cliphist-image.service cliphist-text.service display-watcher.service inhibridge.service +mako.service pass-secret-service.service signal.service swayidle.service -- cgit v1.3.1