@cryptotaxi247 / infra-1 / commits / 9de81dbd

Put /nix/var/nix on another disk

Eelco Dolstra committed Aug 29, 2014 at 16:38 UTC 9de81dbd1d78a0a51e7f914aa3530e6a3a90d4a5
1 file changed +22 -18
delft/lucifer.nix
+22 -18
@@ -40,24 +40,28 @@
40 <!-- End of StatCounter Code -->
41 '';
42
43 - fileSystems =
44 - [ { mountPoint = "/";
45 - label = "nixos";
46 - }
47 - { mountPoint = "/fatdata";
48 - device = "/dev/fatdisk/fatdata";
49 - neededForBoot = true;
50 - }
51 - { mountPoint = "/nix";
52 - device = "/fatdata/nix";
53 - fsType = "none";
54 - options = "bind";
55 - neededForBoot = true;
56 - }
57 - { mountPoint = "/data";
58 - label = "data";
59 - }
60 - ];
43 + fileSystems."/".device = "/dev/disk/by-label/nixos";
44 +
45 + fileSystems."/fatdata" =
46 + { device = "/dev/fatdisk/fatdata";
47 + neededForBoot = true;
48 + };
49 +
50 + fileSystems."/nix" =
51 + { device = "/fatdata/nix";
52 + fsType = "none";
53 + options = "bind";
54 + neededForBoot = true;
55 + };
56 +
57 + fileSystems."/nix/var/nix" =
58 + { device = "/nix-data";
59 + fsType = "none";
60 + options = "bind";
61 + neededForBoot = true;
62 + };
63 +
64 + fileSystems."/data".device = "/dev/disk/by-label/data";
65
66 services.nfs.server.enable = true;
67 services.nfs.server.exports =