hydra: update Hydra configs

This commit is contained in:
Serĉanto de Scio 2021-09-28 11:34:24 +10:00
parent d669a91593
commit 7df174e45c
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA
3 changed files with 7 additions and 4 deletions

View file

@ -5,6 +5,8 @@ let
owner = "nixos"; owner = "nixos";
repo = "hydra"; repo = "hydra";
rev = "906d2493c5c74673ba317d0b5ce7d97b062bd39b"; rev = "906d2493c5c74673ba317d0b5ce7d97b062bd39b";
#rev = "87837f1d82904bf48e11b5641258b6be2f663c3b";
#sha256 = "1vs3lyfyafsl7wbpmycv7c3n9n2rkrswp65msb6q1iskgpvr96d5";
sha256 = "0i7szp04c873gfmj1h0dcl5rsbzzldc160pcls8z9v6iphils34i"; sha256 = "0i7szp04c873gfmj1h0dcl5rsbzzldc160pcls8z9v6iphils34i";
}; };
in in

View file

@ -2,6 +2,7 @@
let let
hydraRelease = (import (src + "/release.nix") { hydraRelease = (import (src + "/release.nix") {
#hydraRelease = (import src {
nixpkgs = nixpkgsPath; nixpkgs = nixpkgsPath;
hydraSrc = { hydraSrc = {
outPath = src; outPath = src;

View file

@ -31,19 +31,19 @@
name = "hydra"; # Ensure the database user persists name = "hydra"; # Ensure the database user persists
ensurePermissions = { # Ensure the database permissions persist ensurePermissions = { # Ensure the database permissions persist
"DATABASE hydra" = "ALL PRIVILEGES"; "DATABASE hydra" = "ALL PRIVILEGES";
"ALL TABLES IN SCHEMA public" = "ALL PRIVILEGES";
}; };
} }
]; ];
}; };
#networking.firewall.allowedTCPPorts = [ config.services.hydra-dev.port ];
networking.firewall.allowedTCPPorts = [ config.services.hydra.port ]; networking.firewall.allowedTCPPorts = [ config.services.hydra.port ];
#services.hydra-dev = { #services.hydra-dev = {
services.hydra = { services.hydra = {
enable = true; enable = true;
#package = pkgs.callPackage ./hydra-dev.nix {}; # Remove to use stable Hydra #package = pkgs.hydra-unstable;
package = pkgs.hydra-unstable; port = 3003;
useSubstitutes = true; useSubstitutes = true;
hydraURL = "https://hydra.mcwhirter.io"; hydraURL = "https://hydra.mcwhirter.io";
notificationSender = "hydra.mcwhirter.io"; notificationSender = "hydra.mcwhirter.io";
@ -58,7 +58,7 @@
virtualHosts."hydra.mcwhirter.io" = { virtualHosts."hydra.mcwhirter.io" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/".proxyPass = "http://127.0.0.1:3000"; locations."/".proxyPass = "http://127.0.0.1:3003";
}; };
}; };