diff options
| author | 2026-06-05 11:06:02 +0100 | |
|---|---|---|
| committer | 2026-06-05 11:06:02 +0100 | |
| commit | 7414a25165e1469cacee3fa9d8e9dd25df640aa0 (patch) | |
| tree | 5bb35099d519cce520155cd2d301ad779e9aac5f | |
| parent | c613f5b23418c5b68c6116ec22ce46d1a1fb42a2 (diff) | |
| download | dotfiles-7414a25165e1469cacee3fa9d8e9dd25df640aa0.tar.gz dotfiles-7414a25165e1469cacee3fa9d8e9dd25df640aa0.tar.bz2 dotfiles-7414a25165e1469cacee3fa9d8e9dd25df640aa0.zip | |
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.
| -rw-r--r-- | dot_config/systemd/user/poweralertd.service | 14 | ||||
| -rw-r--r-- | systemd-units/user.txt | 1 |
2 files changed, 15 insertions, 0 deletions
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 |
