diff options
author | Tomas Antonio Lopez <entropy.overseer@entropic.network> | 2023-08-26 15:13:52 +0200 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-11-28 17:40:39 +0000 |
commit | 38ba8684ff62ee82fef9b1208477065c05bff129 (patch) | |
tree | 13b240ff247c991b1156e1b094390259c34a701b /nixos/modules | |
parent | a732a46482f408a4c5364160c54543ea10a32234 (diff) |
nixos/sourcehut: compile and integrate paste.sr.ht API component
(cherry picked from commit 5476b490d4c47655ee6345a120b663fa5351ee07)
Diffstat (limited to 'nixos/modules')
-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 f2b09f4bc4b61..8719a176973c6 100644 --- a/nixos/modules/services/misc/sourcehut/default.nix +++ b/nixos/modules/services/misc/sourcehut/default.nix @@ -1316,6 +1316,11 @@ in (import ./service.nix "paste" { inherit configIniOfService; port = 5011; + extraServices.pastesrht-api = { + serviceConfig.Restart = "always"; + serviceConfig.RestartSec = "5s"; + serviceConfig.ExecStart = "${pkgs.sourcehut.pastesrht}/bin/pastesrht-api -b ${cfg.listenAddress}:${toString (cfg.paste.port + 100)}"; + }; }) (import ./service.nix "todo" { |