hm: sanitize shell service

This commit is contained in:
2026-10-07 01:20:42 +02:00
parent 8c66f86f83
commit 021de35506
2 changed files with 15 additions and 4 deletions

View File

@@ -77,10 +77,7 @@
"$HOME/Scripts" "$HOME/Scripts"
]; ];
file = { file.".config/WMScripts".source = ../scripts/WMScripts;
".config/WMScripts".source = ../scripts/WMScripts;
".config/sanitize".source = ../scripts/sanitize;
};
sessionVariables = { # TODO: add rest of .config/uwms/env.bck here sessionVariables = { # TODO: add rest of .config/uwms/env.bck here
NEWT_COLORS_FILE = "$HOME/.newtColours"; NEWT_COLORS_FILE = "$HOME/.newtColours";

View File

@@ -23,4 +23,18 @@
resurrect resurrect
]; ];
}; };
systemd.user.services.sanitize-shell-history = {
description = "Sanitizes shell history on unmount of P";
bindsTo = [ "run-media-djai-P.mount" ];
wantedBy = [ "run-media-djai-P.mount" ];
serviceConfig = {
Type = "simple";
StandardOutput = "journal";
ExecStart = "/home/djai/.config/sanitize/autoSanitize.sh";
};
};
home-manager.users.djai.home.file.".config/sanitize".source = ../../scripts/sanitize;
} }