From d85d3827871e8a0c3fcfe32428948b629df9970d Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 15 Oct 2025 22:27:53 +0900 Subject: [PATCH] nixos/gollum: replace `preStart` with `ExecStartPre` --- nixos/modules/services/misc/gollum.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/misc/gollum.nix b/nixos/modules/services/misc/gollum.nix index ccfa63d3823d..a6793362d188 100644 --- a/nixos/modules/services/misc/gollum.nix +++ b/nixos/modules/services/misc/gollum.nix @@ -138,17 +138,13 @@ in description = "Gollum wiki"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; - path = [ pkgs.git ]; - - preStart = '' - # This is safe to be run on an existing repo - git init ${cfg.stateDir} - ''; serviceConfig = { User = cfg.user; Group = cfg.group; WorkingDirectory = cfg.stateDir; + # This is safe to be run on an existing repo + ExecStartPre = "${lib.getExe pkgs.git} init ${cfg.stateDir}"; ExecStart = '' ${cfg.package}/bin/gollum \ --port ${toString cfg.port} \