From 8b55a6ac58b678199e5bba701aaff69e2b3281c0 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 21 Aug 2025 22:40:59 +0200 Subject: [PATCH] nix-gc: remove unnecessary toString --- modules/services/nix-gc.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/services/nix-gc.nix b/modules/services/nix-gc.nix index 67a833d17..02a823eb7 100644 --- a/modules/services/nix-gc.nix +++ b/modules/services/nix-gc.nix @@ -92,11 +92,9 @@ in }; Service = { Type = "oneshot"; - ExecStart = toString ( - pkgs.writeShellScript "nix-gc" "exec ${nixPackage}/bin/nix-collect-garbage ${ - lib.optionalString (cfg.options != null) cfg.options - }" - ); + ExecStart = pkgs.writeShellScript "nix-gc" "exec ${nixPackage}/bin/nix-collect-garbage ${ + lib.optionalString (cfg.options != null) cfg.options + }"; }; }; systemd.user.timers.nix-gc = {