That didn't work
This commit is contained in:
parent
5df487f073
commit
0b88a87abe
|
@ -18,11 +18,11 @@
|
||||||
path = with pkgs; [jq coreutils udisks bash auto-mount];
|
path = with pkgs; [jq coreutils udisks bash auto-mount];
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Mount External Drive on %i";
|
description = "Mount External Drive on %i";
|
||||||
|
script = "auto-mount add %i";
|
||||||
|
preStop = "auto-mount remove %i";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
script = "auto-mount add %i";
|
|
||||||
preStop = "auto-mount remove %i";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue