fix hydra port

This commit is contained in:
Osman Faruk Bayram 2025-07-27 02:59:35 +03:00
parent fc5b4d614e
commit 03525546d5

View file

@ -1,4 +1,7 @@
{ lib, ... }: { lib, ... }:
let
hydraPort = 54543;
in
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@ -12,12 +15,13 @@
services.hydra = { services.hydra = {
enable = true; enable = true;
hydraURL = "http://localhost:54543"; hydraURL = "http://localhost:${hydraPort}";
notificationSender = "hydra@localhost"; notificationSender = "hydra@localhost";
buildMachinesFiles = []; buildMachinesFiles = [];
useSubstitutes = true; useSubstitutes = true;
}; };
networking.firewall.allowedTCPPorts = [ 54543 ]; networking.firewall.allowedTCPPorts = [ hydraPort ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;