From 3a5c613ce2f3cec13da588d76e6ed86ea5cd2151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 25 Apr 2025 01:27:15 +0200 Subject: [PATCH 1/2] nixos/gancio: fix cli not passing all args --- nixos/modules/services/web-apps/gancio.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/gancio.nix b/nixos/modules/services/web-apps/gancio.nix index c7e10a6e0bf4..80982762d144 100644 --- a/nixos/modules/services/web-apps/gancio.nix +++ b/nixos/modules/services/web-apps/gancio.nix @@ -174,7 +174,7 @@ in if [[ "$USER" != ${cfg.user} ]]; then sudo="exec /run/wrappers/bin/sudo -u ${cfg.user}" fi - $sudo ${lib.getExe cfg.package} ''${1:--help} + $sudo ${lib.getExe cfg.package} ''${@:--help} ' > $out/bin/gancio chmod +x $out/bin/gancio '') From 95afdf2b4971eda2e953bb3dca24f8d4faf49fbc Mon Sep 17 00:00:00 2001 From: Sandro Date: Fri, 25 Apr 2025 14:33:51 +0200 Subject: [PATCH 2/2] nixos/gancio: properly quote Co-authored-by: Wroclaw --- nixos/modules/services/web-apps/gancio.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/gancio.nix b/nixos/modules/services/web-apps/gancio.nix index 80982762d144..aec066112132 100644 --- a/nixos/modules/services/web-apps/gancio.nix +++ b/nixos/modules/services/web-apps/gancio.nix @@ -174,7 +174,7 @@ in if [[ "$USER" != ${cfg.user} ]]; then sudo="exec /run/wrappers/bin/sudo -u ${cfg.user}" fi - $sudo ${lib.getExe cfg.package} ''${@:--help} + $sudo ${lib.getExe cfg.package} "''${@:--help}" ' > $out/bin/gancio chmod +x $out/bin/gancio '')