From 34464d6044271c431133f0e9ce064b7bc79c9868 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 4 Apr 2023 01:01:49 +0200 Subject: [PATCH] nixos/go-neb: Replace PermissionsStartOnly with executable prefix This should work as a drop-in replacement and satisfy #53852. --- nixos/modules/services/networking/go-neb.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/networking/go-neb.nix b/nixos/modules/services/networking/go-neb.nix index 8c04542c47cc..b65bb5f548ee 100644 --- a/nixos/modules/services/networking/go-neb.nix +++ b/nixos/modules/services/networking/go-neb.nix @@ -60,13 +60,12 @@ in { serviceConfig = { ExecStartPre = lib.optional (cfg.secretFile != null) - (pkgs.writeShellScript "pre-start" '' + ("+" + pkgs.writeShellScript "pre-start" '' umask 077 export $(xargs < ${cfg.secretFile}) ${pkgs.envsubst}/bin/envsubst -i "${configFile}" > ${finalConfigFile} chown go-neb ${finalConfigFile} ''); - PermissionsStartOnly = true; RuntimeDirectory = "go-neb"; ExecStart = "${pkgs.go-neb}/bin/go-neb"; User = "go-neb";