| 
									
										
										
										
											2023-09-07 00:00:34 +02:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-11-04 13:03:19 +01:00
										 |  |  |   disko.devices = { | 
					
						
							|  |  |  |     disk = { | 
					
						
							|  |  |  |       vdb = { | 
					
						
							|  |  |  |         type = "disk"; | 
					
						
							|  |  |  |         device = "/dev/disk/by-id/usb-Seagate_Expansion_2HC015KJ-0:0"; | 
					
						
							|  |  |  |         content = { | 
					
						
							|  |  |  |           type = "gpt"; | 
					
						
							|  |  |  |           partitions = { | 
					
						
							|  |  |  |             boot = { | 
					
						
							|  |  |  |               size = "1M"; | 
					
						
							|  |  |  |               type = "EF02"; # for grub MBR | 
					
						
							| 
									
										
										
										
											2023-09-07 00:00:34 +02:00
										 |  |  |             }; | 
					
						
							| 
									
										
										
										
											2023-11-04 13:03:19 +01:00
										 |  |  |             ESP = { | 
					
						
							|  |  |  |               size = "512M"; | 
					
						
							|  |  |  |               type = "EF00"; | 
					
						
							| 
									
										
										
										
											2023-09-07 00:00:34 +02:00
										 |  |  |               content = { | 
					
						
							| 
									
										
										
										
											2023-11-04 13:03:19 +01:00
										 |  |  |                 type = "filesystem"; | 
					
						
							|  |  |  |                 format = "vfat"; | 
					
						
							|  |  |  |                 mountpoint = "/boot"; | 
					
						
							| 
									
										
										
										
											2024-07-28 21:08:02 +02:00
										 |  |  |                 mountOptions = [ "defaults" ]; | 
					
						
							| 
									
										
										
										
											2023-11-04 13:03:19 +01:00
										 |  |  |               }; | 
					
						
							|  |  |  |             }; | 
					
						
							|  |  |  |             luks = { | 
					
						
							|  |  |  |               size = "100%"; | 
					
						
							|  |  |  |               content = { | 
					
						
							|  |  |  |                 type = "luks"; | 
					
						
							|  |  |  |                 name = "encrypted"; | 
					
						
							| 
									
										
										
										
											2023-11-04 13:05:05 +01:00
										 |  |  |                 settings.allowDiscards = true; | 
					
						
							| 
									
										
										
										
											2023-11-04 13:03:19 +01:00
										 |  |  |                 passwordFile = "/tmp/disk.key"; | 
					
						
							|  |  |  |                 content = { | 
					
						
							|  |  |  |                   type = "lvm_pv"; | 
					
						
							|  |  |  |                   vg = "pool"; | 
					
						
							|  |  |  |                 }; | 
					
						
							| 
									
										
										
										
											2023-09-07 00:00:34 +02:00
										 |  |  |               }; | 
					
						
							|  |  |  |             }; | 
					
						
							|  |  |  |           }; | 
					
						
							|  |  |  |         }; | 
					
						
							|  |  |  |       }; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2023-11-04 13:03:19 +01:00
										 |  |  |     lvm_vg = { | 
					
						
							|  |  |  |       pool = { | 
					
						
							|  |  |  |         type = "lvm_vg"; | 
					
						
							|  |  |  |         lvs = { | 
					
						
							|  |  |  |           root = { | 
					
						
							|  |  |  |             size = "50G"; | 
					
						
							|  |  |  |             content = { | 
					
						
							|  |  |  |               type = "filesystem"; | 
					
						
							|  |  |  |               format = "ext4"; | 
					
						
							|  |  |  |               mountpoint = "/"; | 
					
						
							|  |  |  |             }; | 
					
						
							| 
									
										
										
										
											2023-09-07 00:00:34 +02:00
										 |  |  |           }; | 
					
						
							| 
									
										
										
										
											2023-11-04 13:03:19 +01:00
										 |  |  |           data = { | 
					
						
							|  |  |  |             size = "400G"; | 
					
						
							|  |  |  |             content = { | 
					
						
							|  |  |  |               type = "filesystem"; | 
					
						
							|  |  |  |               format = "ext4"; | 
					
						
							|  |  |  |               mountpoint = "/data"; | 
					
						
							|  |  |  |             }; | 
					
						
							| 
									
										
										
										
											2023-09-07 00:00:34 +02:00
										 |  |  |           }; | 
					
						
							| 
									
										
										
										
											2023-11-04 13:03:19 +01:00
										 |  |  |           swap = { | 
					
						
							|  |  |  |             size = "4G"; | 
					
						
							|  |  |  |             content = { | 
					
						
							|  |  |  |               type = "swap"; | 
					
						
							|  |  |  |               randomEncryption = true; | 
					
						
							|  |  |  |               resumeDevice = true; | 
					
						
							|  |  |  |             }; | 
					
						
							| 
									
										
										
										
											2023-09-07 00:00:34 +02:00
										 |  |  |           }; | 
					
						
							|  |  |  |         }; | 
					
						
							|  |  |  |       }; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } |