From 5df487f073d40b4a8ef8bc194c346322586c6b1d Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Wed, 20 Mar 2024 23:35:27 +0100 Subject: [PATCH] Maybe this will work? --- nixos/hosts/shodan/auto-mount.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; }; }; }