Try this to restart it

This commit is contained in:
Lillian Violet 2024-03-21 13:19:36 +01:00
parent 4178072d62
commit 5d1bd82ba4

View file

@ -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;
};
};
} }