From 05d9dd368a0ecd6f6cf9844d40f879b26488f1e7 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Thu, 21 Mar 2024 00:49:37 +0100 Subject: [PATCH] Maybe it only digests once? --- nixos/hosts/shodan/auto-mount.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nixos/hosts/shodan/auto-mount.nix b/nixos/hosts/shodan/auto-mount.nix index 385f69f..568bf95 100644 --- a/nixos/hosts/shodan/auto-mount.nix +++ b/nixos/hosts/shodan/auto-mount.nix @@ -21,8 +21,7 @@ systemd.services."external-drive-mount@" = { path = with pkgs; [jq coreutils udisks bash util-linux auto-mount]; enable = true; - description = "Mount External Drive on %i"; - script = "echo auto-mount add $1 && auto-mount add $1"; + script = "echo auto-mount add $@ && auto-mount add $@"; serviceConfig = { Type = "oneshot"; RemainAfterExit = true; @@ -32,7 +31,6 @@ systemd.services."external-drive-unmount@" = { path = with pkgs; [jq coreutils udisks bash util-linux auto-mount]; enable = true; - description = "Mount External Drive on %i"; script = "auto-mount remove $1"; serviceConfig = { Type = "oneshot";