hm: sanitize shell service
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user