Try this to restart it
This commit is contained in:
parent
4178072d62
commit
5d1bd82ba4
|
@ -22,21 +22,11 @@
|
||||||
path = with pkgs; [jq coreutils udisks bash util-linux auto-mount];
|
path = with pkgs; [jq coreutils udisks bash util-linux auto-mount];
|
||||||
enable = true;
|
enable = true;
|
||||||
script = "auto-mount add $@";
|
script = "auto-mount add $@";
|
||||||
|
preStop = "auto-mount remove $@";
|
||||||
scriptArgs = "%i";
|
scriptArgs = "%i";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."external-drive-unmount@" = {
|
|
||||||
path = with pkgs; [jq coreutils udisks bash util-linux auto-mount];
|
|
||||||
enable = true;
|
|
||||||
script = "auto-mount remove $@";
|
|
||||||
scriptArgs = "%i";
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
RemainAfterExit = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue