Let's try this then, echo only first

This commit is contained in:
Lillian Violet 2024-03-21 14:03:11 +01:00
parent e7baa04455
commit 2ba8c3f126

View file

@ -21,10 +21,10 @@
systemd.services."external-drive-mount@" = { systemd.services."external-drive-mount@" = {
path = with pkgs; [jq coreutils udisks bash util-linux toybox auto-mount]; path = with pkgs; [jq coreutils udisks bash util-linux toybox auto-mount];
enable = true; enable = true;
script = "auto-mount add $@";
postStop = "echo auto-mount remove $@";
scriptArgs = "%i"; scriptArgs = "%i";
serviceConfig = { serviceConfig = {
execStart = "echo ${pkgs.auto-mount} add $@";
execStop = "echo ${pkgs.auto-mount} remove $@";
Type = "oneshot"; Type = "oneshot";
RemainAfterExit = true; RemainAfterExit = true;
}; };