c/m/dcr01s22: pivot to lvm root

The bootloader is *not* moved yet, machine still boots off the old disk

Change-Id: I8cc92489bb06bfe9581d68503237e08fa8082c7c
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1766
Reviewed-by: q3k <q3k@hackerspace.pl>
diff --git a/cluster/machines/dcr01s22.hswaw.net.nix b/cluster/machines/dcr01s22.hswaw.net.nix
index 9cb247f..d454516 100644
--- a/cluster/machines/dcr01s22.hswaw.net.nix
+++ b/cluster/machines/dcr01s22.hswaw.net.nix
@@ -10,8 +10,15 @@
   system.stateVersion = "19.09";
   nix.maxJobs = 48;
 
+  boot.initrd.kernelModules = [ "dm-raid" ];
+
   boot.loader.grub.device = "/dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YJNX1M604518E";
-  fileSystems."/".device = "/dev/disk/by-uuid/b4149083-49fe-4951-a143-aff4cedaf33a";
+  #fileSystems."/".device = "/dev/disk/by-uuid/b4149083-49fe-4951-a143-aff4cedaf33a";
+  fileSystems."/".device = "/dev/vg-nixos-hscloud/nixos-root";
+
+  environment.etc."lvm/lvm.conf".text = ''
+    devices/issue_discards = 1
+  '';
 
   hscloud.base = {
     mgmtIf = "enp130s0f0";