From 19f8b887d3db517c613a74bcdd6c8814560df6fb Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Thu, 21 Mar 2024 00:53:11 +0100 Subject: [PATCH] Oh wait am I dumb --- nixos/hosts/shodan/auto-mount.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;