diff options
| author | 2026-06-05 11:06:01 +0100 | |
|---|---|---|
| committer | 2026-06-05 11:06:01 +0100 | |
| commit | c613f5b23418c5b68c6116ec22ce46d1a1fb42a2 (patch) | |
| tree | f76ca9d2690b11575c54c21bd3ce2a32f5b21ba6 /dot_config/systemd/user/mako.service | |
| parent | 9ec3c16d06acc3c496634f4952e1f8dc73a7de1c (diff) | |
| download | dotfiles-c613f5b23418c5b68c6116ec22ce46d1a1fb42a2.tar.gz dotfiles-c613f5b23418c5b68c6116ec22ce46d1a1fb42a2.tar.bz2 dotfiles-c613f5b23418c5b68c6116ec22ce46d1a1fb42a2.zip | |
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.
Diffstat (limited to 'dot_config/systemd/user/mako.service')
| -rw-r--r-- | dot_config/systemd/user/mako.service | 17 |
1 files changed, 17 insertions, 0 deletions
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 |
