Unverified Commit 5f1abb30 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #311986 from NyCodeGHG/nixos/rosenpass/fix-credentials

nixos/rosenpass: move preStart into script to workaround systemd bug
parents 57c78dc4 6478f80b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -225,8 +225,10 @@ in
        # See <https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Specifiers>
        environment.CONFIG = "%t/${serviceConfig.RuntimeDirectory}/config.toml";

        preStart = "${getExe pkgs.envsubst} -i ${config} -o \"$CONFIG\"";
        script = "rosenpass exchange-config \"$CONFIG\"";
        script = ''
          ${getExe pkgs.envsubst} -i ${config} -o "$CONFIG"
          rosenpass exchange-config "$CONFIG"
        '';
      };
  };
}