update Puenktchen disko
This commit is contained in:
		
							parent
							
								
									c3968035cf
								
							
						
					
					
						commit
						d0317d9b39
					
				
					 2 changed files with 35 additions and 45 deletions
				
			
		|  | @ -8,53 +8,43 @@ | |||
|           type = "gpt"; | ||||
|           partitions = { | ||||
|             ESP = { | ||||
|               priority = 1; | ||||
|               name = "ESP"; | ||||
|               size = "512M"; | ||||
|               type = "EF00"; | ||||
|               content = { | ||||
|                 type = "filesystem"; | ||||
|                 format = "vfat"; | ||||
|                 mountpoint = "/boot"; | ||||
|                 mountOptions = [ | ||||
|                   "defaults" | ||||
|                 ]; | ||||
|               }; | ||||
|             }; | ||||
|             luks = { | ||||
|             root = { | ||||
|               size = "100%"; | ||||
|               content = { | ||||
|                 type = "luks"; | ||||
|                 name = "crypted"; | ||||
|                 # disable settings.keyFile if you want to use interactive password entry | ||||
|                 #passwordFile = "/tmp/secret.key"; # Interactive | ||||
|                 settings = { | ||||
|                   allowDiscards = true; | ||||
|                   keyFile = "/tmp/secret.key"; | ||||
|                 }; | ||||
|                 additionalKeyFiles = [ "/tmp/additionalSecret.key" ]; | ||||
|                 content = { | ||||
|                   type = "btrfs"; | ||||
|                   extraArgs = [ "-f" ]; | ||||
|                   subvolumes = { | ||||
|                     "/root" = { | ||||
|                       mountpoint = "/"; | ||||
|                       mountOptions = [ "compress=zstd" "noatime" ]; | ||||
|                     }; | ||||
|                     "/home" = { | ||||
|                       mountpoint = "/home"; | ||||
|                       mountOptions = [ "compress=zstd" "noatime" ]; | ||||
|                     }; | ||||
|                     "/nix" = { | ||||
|                       mountpoint = "/nix"; | ||||
|                       mountOptions = [ "compress=zstd" "noatime" ]; | ||||
|                     }; | ||||
|                     "/mnt/data" = { | ||||
|                       mountpoint = "/mnt/data"; | ||||
|                       mountOptions = [ "compress=zstd" "noatime" ]; | ||||
|                     }; | ||||
|                     "/swap" = { | ||||
|                       mountpoint = "/.swapvol"; | ||||
|                       swap.swapfile.size = "20M"; | ||||
|                     }; | ||||
|                 type = "btrfs"; | ||||
|                 extraArgs = [ "-f" ]; # Override existing partition | ||||
|                 # Subvolumes must set a mountpoint in order to be mounted, | ||||
|                 # unless their parent is mounted | ||||
|                 subvolumes = { | ||||
|                   # Subvolume name is different from mountpoint | ||||
|                   "/rootfs" = { | ||||
|                     mountOptions = [ "compress=zstd" "noatime" ]; | ||||
|                     mountpoint = "/"; | ||||
|                   }; | ||||
|                   # Subvolume name is the same as the mountpoint | ||||
|                   "/home" = { | ||||
|                     mountOptions = [ "compress=zstd" "noatime" ]; | ||||
|                     mountpoint = "/home"; | ||||
|                   }; | ||||
|                   # Parent is not mounted so the mountpoint must be set | ||||
|                   "/nix" = { | ||||
|                     mountOptions = [ "compress=zstd" "noatime" ]; | ||||
|                     mountpoint = "/nix"; | ||||
|                   }; | ||||
|                   # Subvolume for the swapfile | ||||
|                   "/swap" = { | ||||
|                     mountpoint = "/.swapvol"; | ||||
|                     swap.swapfile.size = "40G"; | ||||
|                   }; | ||||
|                 }; | ||||
|               }; | ||||
|  | @ -64,4 +54,4 @@ | |||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue