fix: wipe cliphist on restart

This commit is contained in:
Barrett Ruth 2026-02-11 16:11:14 -05:00
parent d7f018939f
commit 9a4cca62e7
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -54,5 +54,16 @@
};
Install.WantedBy = [ "timers.target" ];
};
systemd.user.services.cliphist-wipe = {
Unit.Description = "Clear clipboard history on session end";
Service = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${pkgs.coreutils}/bin/true";
ExecStop = "${pkgs.cliphist}/bin/cliphist wipe";
};
Install.WantedBy = [ "graphical-session.target" ];
};
};
}