forked from jan-leila/nix-config
		
	moved disko needed configuration to disko.nix
This commit is contained in:
		
							parent
							
								
									7979b4ed17
								
							
						
					
					
						commit
						a68f81cf3b
					
				
					 2 changed files with 39 additions and 29 deletions
				
			
		|  | @ -38,33 +38,6 @@ | |||
|         }; | ||||
| 
 | ||||
|         host.storage.pool.extraDatasets = { | ||||
|           # local datasets are for data that should be considered ephemeral | ||||
|           "local" = { | ||||
|             type = "zfs_fs"; | ||||
|             options.canmount = "off"; | ||||
|           }; | ||||
|           # nix directory needs to be available pre persist and doesn't need to be snapshotted or backed up | ||||
|           "local/system/nix" = { | ||||
|             type = "zfs_fs"; | ||||
|             mountpoint = "/nix"; | ||||
|             options = { | ||||
|               atime = "off"; | ||||
|               relatime = "off"; | ||||
|               canmount = "on"; | ||||
|             }; | ||||
|           }; | ||||
|           # dataset for root that gets rolled back on every boot | ||||
|           "local/system/root" = { | ||||
|             type = "zfs_fs"; | ||||
|             mountpoint = "/"; | ||||
|             options = { | ||||
|               canmount = "on"; | ||||
|             }; | ||||
|             postCreateHook = '' | ||||
|               zfs snapshot rpool/local/system/root@blank | ||||
|             ''; | ||||
|           }; | ||||
| 
 | ||||
|           # persist datasets are datasets that contain information that we would like to keep around | ||||
|           "persist" = { | ||||
|             type = "zfs_fs"; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue