Unverified Commit 130be87c authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #224549 from mweinelt/go-neb-unit-permissions

nixos/go-neb: Replace PermissionsStartOnly with executable prefix
parents ef26580b 34464d60
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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";