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 =
[ (pkgs.nixos { }).nixos-rebuild pkgs.terraform pkgs.sops ];
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 = {
eve-psr-nix0 = nixpkgs.lib.nixosSystem {
@ -39,7 +39,7 @@
networking = {
hostName = "eve-psr-nix0";
firewall = {
allowedTCPPorts = [ 22 80 443 ];
allowedTCPPorts = [ 22 80 443 3034 ];
allowedUDPPorts = [ 22 80 443 ];
};
};
@ -49,10 +49,19 @@
services = {
hydra = {
enable = true;
hydraURL = "http://localhost:3000";
notificationSender = "hydra@eversole.co";
buildMachinesFiles = [];
hydraURL = "https://hydra.matri.cx";
listenHost = "192.168.0.130";
port = 3034;
extraConfig = ''
using_frontend_proxy = 1
base_uri = "https://hydra.matri.cx"
'';
useSubstitutes = true;
notificationSender = "hydra@matri.cx";
buildMachinesFiles = [];
};
openssh.enable = true;
};