diff --git a/nixos/hosts/shodan/auto-mount.nix b/nixos/hosts/shodan/auto-mount.nix index f4d4834..db7c511 100644 --- a/nixos/hosts/shodan/auto-mount.nix +++ b/nixos/hosts/shodan/auto-mount.nix @@ -18,11 +18,11 @@ path = with pkgs; [jq coreutils udisks bash auto-mount]; enable = true; description = "Mount External Drive on %i"; + script = "auto-mount add %i"; + preStop = "auto-mount remove %i"; serviceConfig = { Type = "oneshot"; RemainAfterExit = true; - script = "auto-mount add %i"; - preStop = "auto-mount remove %i"; }; }; }