From 7414a25165e1469cacee3fa9d8e9dd25df640aa0 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 5 Jun 2026 11:06:02 +0100 Subject: fix(systemd): ship poweralertd.service user unit poweralertd was migrated to nix (host.nix) but, like mako, the nix package does not ship a systemd user unit on the manager's search path. sway-session.target's Wants=poweralertd.service referenced a non-existent unit (previously the pacman package supplied /usr/lib/systemd/user/poweralertd.service), so battery/AC notifications never started at login. Add a repo-owned poweralertd.service (absolute nix-profile path) and register it in systemd-units/user.txt. --- dot_config/systemd/user/poweralertd.service | 14 ++++++++++++++ systemd-units/user.txt | 1 + 2 files changed, 15 insertions(+) create mode 100644 dot_config/systemd/user/poweralertd.service diff --git a/dot_config/systemd/user/poweralertd.service b/dot_config/systemd/user/poweralertd.service new file mode 100644 index 0000000..ed4bcd2 --- /dev/null +++ b/dot_config/systemd/user/poweralertd.service @@ -0,0 +1,14 @@ +[Unit] +Description=Power state change notification daemon +Documentation=man:poweralertd(1) +PartOf=graphical-session.target +After=graphical-session.target + +[Service] +Type=simple +ExecStart=%h/.nix-profile/bin/poweralertd +Restart=on-failure +RestartSec=2s + +[Install] +WantedBy=sway-session.target diff --git a/systemd-units/user.txt b/systemd-units/user.txt index c0dfd0f..5002a6c 100644 --- a/systemd-units/user.txt +++ b/systemd-units/user.txt @@ -9,6 +9,7 @@ display-watcher.service inhibridge.service mako.service pass-secret-service.service +poweralertd.service signal.service swayidle.service swayrd.service -- cgit v1.3.1