From 0b88a87abe8d06b0086e4c93c2cc800abf573593 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Wed, 20 Mar 2024 23:40:09 +0100 Subject: [PATCH] That didn't 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 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"; }; }; }