65 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  disko.devices = {
 | 
						|
    disk = {
 | 
						|
      emmc = {
 | 
						|
        device = "/dev/disk/by-id/nvme-eui.000000000000000100a07521334683d6";
 | 
						|
        type = "disk";
 | 
						|
        content = {
 | 
						|
          type = "gpt";
 | 
						|
          partitions = {
 | 
						|
            ESP = {
 | 
						|
              size = "512M";
 | 
						|
              type = "EF00";
 | 
						|
              content = {
 | 
						|
                type = "filesystem";
 | 
						|
                format = "vfat";
 | 
						|
                mountpoint = "/boot";
 | 
						|
                mountOptions = ["umask=0077"];
 | 
						|
              };
 | 
						|
            };
 | 
						|
            luks = {
 | 
						|
              size = "100%";
 | 
						|
              content = {
 | 
						|
                type = "luks";
 | 
						|
                name = "crypted";
 | 
						|
                passwordFile = "/tmp/secret.key";
 | 
						|
                content = {
 | 
						|
                  type = "btrfs";
 | 
						|
                  extraArgs = ["-L" "nixos" "-f"];
 | 
						|
                  subvolumes = {
 | 
						|
                    "/root" = {
 | 
						|
                      mountpoint = "/";
 | 
						|
                      mountOptions = [
 | 
						|
                        "compress=zstd"
 | 
						|
                        "noatime"
 | 
						|
                      ];
 | 
						|
                    };
 | 
						|
                    "/home" = {
 | 
						|
                      mountpoint = "/home";
 | 
						|
                      mountOptions = [
 | 
						|
                        "compress=zstd"
 | 
						|
                        "noatime"
 | 
						|
                      ];
 | 
						|
                    };
 | 
						|
                    "/nix" = {
 | 
						|
                      mountpoint = "/nix";
 | 
						|
                      mountOptions = [
 | 
						|
                        "compress=zstd"
 | 
						|
                        "noatime"
 | 
						|
                      ];
 | 
						|
                    };
 | 
						|
                    "/swap" = {
 | 
						|
                      mountpoint = "/.swapvol";
 | 
						|
                      swap.swapfile.size = "16G";
 | 
						|
                      priority = 0;
 | 
						|
                    };
 | 
						|
                  };
 | 
						|
                };
 | 
						|
              };
 | 
						|
            };
 | 
						|
          };
 | 
						|
        };
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |