diff --git a/nixos/hosts/shodan/auto-mount.nix b/nixos/hosts/shodan/auto-mount.nix index d44b212..f4d4834 100644 --- a/nixos/hosts/shodan/auto-mount.nix +++ b/nixos/hosts/shodan/auto-mount.nix @@ -21,8 +21,8 @@ serviceConfig = { Type = "oneshot"; RemainAfterExit = true; - ExecStart = "${pkgs.auto-mount} add %i"; - ExecStop = "${pkgs.auto-mount} remove %i"; + script = "auto-mount add %i"; + preStop = "auto-mount remove %i"; }; }; }