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" ]; + }; }; }