From 9a4cca62e727b3d45a372f5122d36b9cfcc491ce Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Wed, 11 Feb 2026 16:11:14 -0500 Subject: [PATCH] fix: wipe cliphist on restart --- home/home.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/home/home.nix b/home/home.nix index 918f3b9..0a5915a 100644 --- a/home/home.nix +++ b/home/home.nix @@ -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" ]; + }; }; }