svn path=/configurations/trunk/tud/; revision=15399
svn path=/configurations/trunk/tud/; revision=15399
Eelco Dolstra committed
Apr 29, 2009 at 15:48 UTC
674d6c34c92344fbcc33b8294570f384093d7d20
1 file changed
+54
build-machines-1950.nix
new
+54
@@ -0,0 +1,54 @@
1
+# Configuration for the Dell PowerEdge 1950 build machines.
2
+
3
+{pkgs, config, ...}:
4
+
5
+{
6
+ boot = {
7
+ grubDevice = "/dev/sda";
8
+ initrd = {
9
+ extraKernelModules = ["uhci_hcd" "ehci_hcd" "ata_piix" "mptsas" "usbhid" "ext4"];
10
+ };
11
+ kernelModules = ["acpi-cpufreq" "kvm-intel"];
12
+ kernelPackages = pkgs: pkgs.kernelPackages_2_6_28;
13
+ copyKernels = true;
14
+ };
15
+
16
+ fileSystems = [
17
+ { mountPoint = "/";
18
+ label = "nixos";
19
+ options = "noatime";
20
+ }
21
+ ];
22
+
23
+ swapDevices = [
24
+ { label = "swap"; }
25
+ ];
26
+
27
+ nix = {
28
+ maxJobs = 8;
29
+ extraOptions = ''
30
+ build-max-silent-time = 3600
31
+ '';
32
+ };
33
+
34
+ services = {
35
+ sshd = {
36
+ enable = true;
37
+ };
38
+ /*
39
+ zabbixAgent = {
40
+ enable = true;
41
+ server = "192.168.1.5";
42
+ };
43
+ */
44
+ cron = {
45
+ systemCronJobs = [
46
+ "15 03 * * * root ${pkgs.nixUnstable}/bin/nix-collect-garbage --max-atime $(date +\\%s -d '2 weeks ago') > /var/log/gc.log 2>&1"
47
+ ];
48
+ };
49
+ };
50
+
51
+ networking = {
52
+ hostName = ""; # obtain from DHCP server
53
+ };
54
+}