56 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # sudo nix run 'github:nix-community/disko/latest#disko-install' -- --flake .#$TARGET_HOSTNAME --disk nvme0n1 /dev/nvme0n1
 | |
| # tar -xvf /Parlor/Lauren/mlaga97-nixos.tar.zst; sudo nixos-rebuild switch --flake mlaga97-nixos?submodules=1#$HOSTNAME
 | |
| { ... }: {
 | |
|   disko.devices = {
 | |
|     disk = {
 | |
|       nvme0n1 = {
 | |
|         type = "disk";
 | |
|         device = "/dev/nvme0n1";
 | |
|         content = {
 | |
|           type = "gpt";
 | |
|           partitions = {
 | |
|             boot = {
 | |
|               size = "1G";
 | |
|               type = "EF00";
 | |
|               content = {
 | |
|                 type = "filesystem";
 | |
|                 format = "vfat";
 | |
|                 mountpoint = "/boot";
 | |
|                 mountOptions = [ "umask=0077" ];
 | |
|               };
 | |
|             };
 | |
|             luks = {
 | |
|               size = "100%";
 | |
|               content = {
 | |
|                 type = "luks";
 | |
|                 name = "crypted";
 | |
|                 content = {
 | |
|                   type = "lvm_pv";
 | |
|                   vg = "pool";
 | |
|                 };
 | |
|               };
 | |
|             };
 | |
|           };
 | |
|         };
 | |
|       };
 | |
|     };
 | |
|     lvm_vg = {
 | |
|       pool = {
 | |
|         type = "lvm_vg";
 | |
|         lvs = {
 | |
|           root = {
 | |
|             size = "100%FREE";
 | |
|             content = {
 | |
|               type = "filesystem";
 | |
|               format = "ext4";
 | |
|               mountpoint = "/";
 | |
|               mountOptions = [
 | |
|                 "defaults"
 | |
|               ];
 | |
|             };
 | |
|           };
 | |
|         };
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| }
 |