diff --git a/nixos/hosts/shodan/auto-mount.nix b/nixos/hosts/shodan/auto-mount.nix index 744811f..23b6398 100644 --- a/nixos/hosts/shodan/auto-mount.nix +++ b/nixos/hosts/shodan/auto-mount.nix @@ -21,7 +21,8 @@ systemd.services."external-drive-mount@" = { path = with pkgs; [jq coreutils udisks bash util-linux auto-mount]; enable = true; - script = "echo auto-mount add %i && auto-mount add %i"; + script = "echo auto-mount $@"; + scriptArgs = " %i"; serviceConfig = { Type = "oneshot"; RemainAfterExit = true;