@cryptotaxi247 / infra / commits / 4c7a6540

* ‘hydra’ is now an ordinary build machine.

svn path=/configurations/trunk/tud/; revision=29201

Eelco Dolstra committed Sep 12, 2011 at 09:08 UTC 4c7a65400926f014559a07c519da030ed90aded0
1 file changed +1 -33
hydra.nix
+1 -33
@@ -1,37 +1,5 @@
1 { config, pkgs, ... }:
2
3 {
4 - require = [ ./common.nix ];
5 -
6 - nixpkgs.system = "x86_64-linux";
7 -
8 - boot = {
9 - initrd.kernelModules = [ "mptsas" "ext4" ];
10 - kernelModules = [ "acpi-cpufreq" "kvm-intel" ];
11 - loader.grub.device = "/dev/sda";
12 - loader.grub.copyKernels = true;
13 - };
14 -
15 - fileSystems =
16 - [ { mountPoint = "/";
17 - label = "nixos";
18 - options = "noatime,barrier=0,data=ordered";
19 - }
20 - ];
21 -
22 - #swapDevices = [ { label = "swap" ; } ];
23 -
24 - nix.maxJobs = 8;
25 -
26 - networking = {
27 - hostName = "hydra";
28 - domain = "buildfarm";
29 - };
30 -
31 - services.cron.systemCronJobs =
32 - [
33 - # Make sure that at least 200 GiB of disk space is available.
34 - "15 3 * * * root nix-store --gc --max-freed \"$((200 * 1024**3 - 1024 * $(df /nix/store | tail -n 1 | awk '{ print $4 }')))\" > /var/log/gc.log 2>&1"
35 - ];
36 -
4 + require = [ ./build-machines-dell-1950.nix ];
5 }