Set disk schema of machine: m1 to single-disk
This commit is contained in:
		
							parent
							
								
									a02a3fecfe
								
							
						
					
					
						commit
						a7d4e0b4ba
					
				
					 1 changed files with 50 additions and 0 deletions
				
			
		
							
								
								
									
										50
									
								
								machines/m1/disko.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								machines/m1/disko.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,50 @@ | |||
| # --- | ||||
| # schema = "single-disk" | ||||
| # [placeholders] | ||||
| # mainDisk = "/dev/disk/by-id/ata-SAMSUNG_MZ7LN256HAJQ-000H1_S3TCNE0JA38335"  | ||||
| # --- | ||||
| # This file was automatically generated! | ||||
| # CHANGING this configuration requires wiping and reinstalling the machine | ||||
| { | ||||
| 
 | ||||
|   boot.loader.grub.efiSupport = true; | ||||
|   boot.loader.grub.efiInstallAsRemovable = true; | ||||
|   boot.loader.grub.enable = true; | ||||
|   disko.devices = { | ||||
|     disk = { | ||||
|       main = { | ||||
|         name = "main-a122d42601d5437687431cfd63ed44e9"; | ||||
|         device = "/dev/disk/by-id/ata-SAMSUNG_MZ7LN256HAJQ-000H1_S3TCNE0JA38335"; | ||||
|         type = "disk"; | ||||
|         content = { | ||||
|           type = "gpt"; | ||||
|           partitions = { | ||||
|             "boot" = { | ||||
|               size = "1M"; | ||||
|               type = "EF02"; # for grub MBR | ||||
|               priority = 1; | ||||
|             }; | ||||
|             ESP = { | ||||
|               type = "EF00"; | ||||
|               size = "500M"; | ||||
|               content = { | ||||
|                 type = "filesystem"; | ||||
|                 format = "vfat"; | ||||
|                 mountpoint = "/boot"; | ||||
|                 mountOptions = [ "umask=0077" ]; | ||||
|               }; | ||||
|             }; | ||||
|             root = { | ||||
|               size = "100%"; | ||||
|               content = { | ||||
|                 type = "filesystem"; | ||||
|                 format = "ext4"; | ||||
|                 mountpoint = "/"; | ||||
|               }; | ||||
|             }; | ||||
|           }; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue