Maybe it only digests once?
This commit is contained in:
parent
92f86fdfae
commit
05d9dd368a
|
@ -21,8 +21,7 @@
|
||||||
systemd.services."external-drive-mount@" = {
|
systemd.services."external-drive-mount@" = {
|
||||||
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;
|
||||||
description = "Mount External Drive on %i";
|
script = "echo auto-mount add $@ && auto-mount add $@";
|
||||||
script = "echo auto-mount add $1 && auto-mount add $1";
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
|
@ -32,7 +31,6 @@
|
||||||
systemd.services."external-drive-unmount@" = {
|
systemd.services."external-drive-unmount@" = {
|
||||||
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;
|
||||||
description = "Mount External Drive on %i";
|
|
||||||
script = "auto-mount remove $1";
|
script = "auto-mount remove $1";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|
Loading…
Reference in a new issue