Skip to content

Commit

Permalink
refactor: move hydra into separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
icecreammatt committed Feb 11, 2024
1 parent e2a0bb8 commit 3b0b395
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
19 changes: 1 addition & 18 deletions hosts/nixos/mini/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
./hardware-configuration.nix
../../../modules/vpn/nebula.nix
../../../modules/apps/vaultwarden.nix
../../../modules/ci/hydra.nix
./caddy.nix
./kopia.nix
./logging.nix
Expand Down Expand Up @@ -204,24 +205,6 @@
# "--kubelet-arg=v=4" # Optionally add additional args to k3s
# ];

services.hydra = {
enable = true;
port = 3050;
notificationSender = "hydra@localhost"; # e-mail of hydra service
hydraURL = "http://localhost:3050";
# buildMachinesFiles = [];
useSubstitutes = true;
};

nix.buildMachines = [
{
hostName = "localhost";
system = "x86_64-linux";
supportedFeatures = [];
maxJobs = 8;
}
];

services.woodpecker-server = {
enable = true;
environment = {
Expand Down
19 changes: 19 additions & 0 deletions modules/ci/hydra.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{...}: {
services.hydra = {
enable = true;
port = 3050;
notificationSender = "hydra@localhost"; # e-mail of hydra service
hydraURL = "http://localhost:3050";
# buildMachinesFiles = [];
useSubstitutes = true;
};

nix.buildMachines = [
{
hostName = "localhost";
system = "x86_64-linux";
supportedFeatures = [];
maxJobs = 8;
}
];
}

0 comments on commit 3b0b395

Please sign in to comment.