summaryrefslogtreecommitdiff
path: root/config/hydra.nix
diff options
context:
space:
mode:
Diffstat (limited to 'config/hydra.nix')
-rw-r--r--config/hydra.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/config/hydra.nix b/config/hydra.nix
new file mode 100644
index 0000000..9242310
--- /dev/null
+++ b/config/hydra.nix
@@ -0,0 +1,31 @@
+{ config, lib, pkgs, ... }:
+let
+ hydraPort = (import ../data/aliases.nix).services.hydra.port;
+in
+{
+ services.hydra = {
+ enable = true;
+ hydraURL = "https://hydra.orbekk.com";
+ notificationSender = "kj+hydra@orbekk.com";
+ port = hydraPort;
+ };
+
+ nix = {
+ distributedBuilds = true;
+ nrBuildUsers = 30;
+ # Enable this if I run low on disk.
+ gc.automatic = lib.mkForce false;
+ buildMachines = [
+ {
+ hostName = "localhost";
+ system = "x86_64-linux";
+ maxJobs = "16";
+ supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ];
+ }
+ ];
+ extraOptions = "auto-optimise-store = true";
+ };
+ nixpkgs.config = {
+ allowUnfree = true;
+ };
+}