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

@@ -23,4 +23,18 @@
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;
}