printing: improve setup
[julm/julm-nix.git] / hosts / blackberry / hardware.nix
index 2abef939c6a36c208a88f8ab3515aa4b64a4e723..19223c444d2ee6f8f5667df2dd2f32cc3c1cb9ba 100644 (file)
@@ -6,6 +6,11 @@
     ../../nixos/profiles/zramSwap.nix
   ];
 
+  boot.kernelParams = [
+    # Avoids huge slow downs, especially with nix.
+    "zfs.zfs_arc_max=${toString (1024 * 1024 * 1024)}" # bytes
+  ];
+
   # Setting the machine-id avoids to reencrypt all credentials
   # when reinstalling NixOS on a new drive.
   # Manually generated with : uuidgen | tr -d -