Update Hydra configuration; update quick-deployment alias

This commit is contained in:
James Eversole 2023-06-21 20:09:36 -05:00
parent d816833846
commit 1fa1f4e9d3

View File

@ -16,7 +16,7 @@
buildInputs = buildInputs =
[ (pkgs.nixos { }).nixos-rebuild pkgs.terraform pkgs.sops ]; [ (pkgs.nixos { }).nixos-rebuild pkgs.terraform pkgs.sops ];
shellHook = shellHook =
" alias sops-deploy=\"nixos-rebuild switch --target-host root@matri.cx --build-host root@matri.cx --flake .#eve-psr-nix0\"\n"; " alias deploy=\"nixos-rebuild switch --target-host root@matri.cx --build-host root@matri.cx --flake .#eve-psr-nix0\"\n";
}; };
nixosConfigurations = { nixosConfigurations = {
eve-psr-nix0 = nixpkgs.lib.nixosSystem { eve-psr-nix0 = nixpkgs.lib.nixosSystem {
@ -39,7 +39,7 @@
networking = { networking = {
hostName = "eve-psr-nix0"; hostName = "eve-psr-nix0";
firewall = { firewall = {
allowedTCPPorts = [ 22 80 443 ]; allowedTCPPorts = [ 22 80 443 3034 ];
allowedUDPPorts = [ 22 80 443 ]; allowedUDPPorts = [ 22 80 443 ];
}; };
}; };
@ -49,10 +49,19 @@
services = { services = {
hydra = { hydra = {
enable = true; enable = true;
hydraURL = "http://localhost:3000"; hydraURL = "https://hydra.matri.cx";
notificationSender = "hydra@eversole.co"; listenHost = "192.168.0.130";
buildMachinesFiles = []; port = 3034;
extraConfig = ''
using_frontend_proxy = 1
base_uri = "https://hydra.matri.cx"
'';
useSubstitutes = true; useSubstitutes = true;
notificationSender = "hydra@matri.cx";
buildMachinesFiles = [];
}; };
openssh.enable = true; openssh.enable = true;
}; };