The /tmp directory was using the SSD disk which is not erased across boots. Nix will use /tmp to perform the builds, so we want it to be as fast as possible. In general, all the machines have enough space to handle large builds like LLVM. Reviewed-by: Aleix Roca Nonell <aleix.rocanonell@bsc.es>
		
			
				
	
	
		
			32 lines
		
	
	
		
			585 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			585 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { ... }:
 | |
| 
 | |
| {
 | |
|   fileSystems."/" =
 | |
|     { device = "/dev/disk/by-label/nixos";
 | |
|       fsType = "ext4";
 | |
|     };
 | |
| 
 | |
|   # Trim unused blocks weekly
 | |
|   services.fstrim.enable = true;
 | |
| 
 | |
|   swapDevices =
 | |
|     [ { device = "/dev/disk/by-label/swap"; }
 | |
|     ];
 | |
| 
 | |
|   # Mount the home via NFS
 | |
|   fileSystems."/home" = {
 | |
|     device = "10.0.40.30:/home";
 | |
|     fsType = "nfs";
 | |
|     options = [ "nfsvers=3" "rsize=1024" "wsize=1024" "cto" "nofail" ];
 | |
|   };
 | |
| 
 | |
|   # Tracing
 | |
|   fileSystems."/sys/kernel/tracing" = {
 | |
|     device = "none";
 | |
|     fsType = "tracefs";
 | |
|   };
 | |
| 
 | |
|   # Mount a tmpfs into /tmp
 | |
|   boot.tmp.useTmpfs = true;
 | |
| }
 |