summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/filepimp.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-01-03 06:08:01 +0100
committermakefu <github@syntax-fehler.de>2016-01-03 06:08:01 +0100
commit757953e551d157b42c06f50e6592cbb3ee64747e (patch)
tree50cb1326bf2c824467c103e57a6fd25a558bc38c /makefu/1systems/filepimp.nix
parent98848a9fffc8f4a2f456770654648f04bf92d5e2 (diff)
ma 1 filepimp: prepare raid
Diffstat (limited to 'makefu/1systems/filepimp.nix')
-rw-r--r--makefu/1systems/filepimp.nix15
1 files changed, 11 insertions, 4 deletions
diff --git a/makefu/1systems/filepimp.nix b/makefu/1systems/filepimp.nix
index 1e9ee5031..2d008cee6 100644
--- a/makefu/1systems/filepimp.nix
+++ b/makefu/1systems/filepimp.nix
@@ -9,12 +9,19 @@
[ # Include the results of the hardware scan.
../2configs/fs/single-partition-ext4.nix
../2configs/tinc-basic-retiolum.nix
+ ../2configs/smart-monitor.nix
];
krebs.build.host = config.krebs.hosts.filepimp;
-
+ services.smartd.devices = [
+ { device = "/dev/sda"; }
+ { device = "/dev/sdb"; }
+ { device = "/dev/sdc"; }
+ { device = "/dev/sdd"; }
+ { device = "/dev/sde"; }
+ ];
# AMD N54L
boot = {
- loader.grub.device = "/dev/sda";
+ loader.grub.device = "/dev/sde";
initrd.availableKernelModules = [
"ahci"
@@ -28,9 +35,9 @@
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
-
hardware.enableAllFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
- networking.firewall.allowPing = true;
+ zramSwap.enable = true;
+ zramSwap.numDevices = 2;
}