diff options
author | Julien Moutinho <julm+nixpkgs@sourcephile.fr> | 2022-05-06 00:03:52 +0200 |
---|---|---|
committer | tomberek <tomberek@users.noreply.github.com> | 2022-06-08 19:46:04 -0400 |
commit | b57ed0fa1de7c6a138e310c009f969dcda347f7c (patch) | |
tree | 5b9f080f4046975fbc63e75d91f538033b78eaaf /nixos/modules/services/misc/sourcehut/default.nix | |
parent | 43f856ab2c411ddd2aca58b84a157f807672c8ab (diff) | |
download | nixpkgs-b57ed0fa1de7c6a138e310c009f969dcda347f7c.tar nixpkgs-b57ed0fa1de7c6a138e310c009f969dcda347f7c.tar.gz nixpkgs-b57ed0fa1de7c6a138e310c009f969dcda347f7c.tar.bz2 nixpkgs-b57ed0fa1de7c6a138e310c009f969dcda347f7c.tar.lz nixpkgs-b57ed0fa1de7c6a138e310c009f969dcda347f7c.tar.xz nixpkgs-b57ed0fa1de7c6a138e310c009f969dcda347f7c.tar.zst nixpkgs-b57ed0fa1de7c6a138e310c009f969dcda347f7c.zip |
sourcehut.gitsrht: 0.77.3 -> 0.78.18
Diffstat (limited to 'nixos/modules/services/misc/sourcehut/default.nix')
-rw-r--r-- | nixos/modules/services/misc/sourcehut/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/sourcehut/default.nix b/nixos/modules/services/misc/sourcehut/default.nix index 746ddbf8f44..310b45f0f4d 100644 --- a/nixos/modules/services/misc/sourcehut/default.nix +++ b/nixos/modules/services/misc/sourcehut/default.nix @@ -1086,6 +1086,11 @@ in }; }) ]; + extraServices.gitsrht-api = { + serviceConfig.Restart = "always"; + serviceConfig.RestartSec = "2s"; + serviceConfig.ExecStart = "${pkgs.sourcehut.gitsrht}/bin/gitsrht-api -b ${cfg.listenAddress}:${toString (cfg.git.port + 100)}"; + }; extraServices.gitsrht-fcgiwrap = mkIf cfg.nginx.enable { serviceConfig = { # Socket is passed by gitsrht-fcgiwrap.socket |