Use NVME as root
Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
		
							parent
							
								
									6942f09f69
								
							
						
					
					
						commit
						abc74c5445
					
				| @ -1,4 +1,4 @@ | |||||||
| { config, pkgs, ... }: | { config, pkgs, lib, ... }: | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   imports = [ |   imports = [ | ||||||
| @ -23,11 +23,15 @@ | |||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   # Select the this using the ID to avoid mismatches |   # Select the this using the ID to avoid mismatches | ||||||
|   boot.loader.grub.device = "/dev/disk/by-id/ata-INTEL_SSDSC2BB240G7_PHDV6462004Y240AGN"; |   boot.loader.grub.device = "/dev/disk/by-id/nvme-INTEL_SSDPED1D960GAY_PHMB81220017960EGN"; | ||||||
| 
 | 
 | ||||||
|   fileSystems."/nvme" = { |   fileSystems = { | ||||||
|  |     "/" = lib.mkForce { | ||||||
|  |       device = "/dev/disk/by-label/nixos-nvme"; | ||||||
|       fsType = "ext4"; |       fsType = "ext4"; | ||||||
|     device = "/dev/disk/by-label/nvme"; |       neededForBoot = true; | ||||||
|  |       options = [ "noatime" ]; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   networking = { |   networking = { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user