| 
									
										
										
										
											2022-06-03 17:47:16 +02:00
										 |  |  | { config, lib, pkgs, ... }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   boot.initrd.luks.devices."luks-drive" = { | 
					
						
							|  |  |  |     name = "luks-drive"; | 
					
						
							| 
									
										
										
										
											2022-06-03 23:37:07 +02:00
										 |  |  |     device = "/dev/disk/by-partlabel/Crypt"; | 
					
						
							| 
									
										
										
										
											2022-06-03 17:47:16 +02:00
										 |  |  |     preLVM = true; | 
					
						
							|  |  |  |     allowDiscards = true; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   fileSystems."/" = { | 
					
						
							|  |  |  |     device = "/dev/disk/by-label/serverle-root"; | 
					
						
							|  |  |  |     fsType = "ext4"; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   fileSystems."/boot" = { | 
					
						
							|  |  |  |     device = "/dev/disk/by-label/serverle-bo"; | 
					
						
							|  |  |  |     fsType = "vfat"; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   fileSystems."/srv" = { | 
					
						
							|  |  |  |     device = "/dev/disk/by-label/serverle-srv"; | 
					
						
							|  |  |  |     fsType = "ext4"; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   swapDevices = [{ | 
					
						
							|  |  |  |     device = "/dev/disk/by-label/serverle-swap"; | 
					
						
							|  |  |  |   }]; | 
					
						
							|  |  |  | } |