Let's try this then, echo only first
This commit is contained in:
parent
e7baa04455
commit
2ba8c3f126
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue