From a373404b3b64061196e60d305898557928e27c2d Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Thu, 21 Mar 2024 00:56:04 +0100 Subject: [PATCH] Auto-mount for steam deck fixed --- nixos/hosts/shodan/auto-mount.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/hosts/shodan/auto-mount.nix b/nixos/hosts/shodan/auto-mount.nix index 23b6398..9d35bc2 100644 --- a/nixos/hosts/shodan/auto-mount.nix +++ b/nixos/hosts/shodan/auto-mount.nix @@ -22,7 +22,7 @@ path = with pkgs; [jq coreutils udisks bash util-linux auto-mount]; enable = true; script = "echo auto-mount $@"; - scriptArgs = " %i"; + scriptArgs = "%i"; serviceConfig = { Type = "oneshot"; RemainAfterExit = true; @@ -32,7 +32,8 @@ systemd.services."external-drive-unmount@" = { path = with pkgs; [jq coreutils udisks bash util-linux auto-mount]; enable = true; - script = "auto-mount remove $1"; + script = "auto-mount remove $@"; + scriptArgs = "%i"; serviceConfig = { Type = "oneshot"; RemainAfterExit = false;