Add bchacefs support, set up the first luks and bcachefs settings, and update plasma-manager config
This commit is contained in:
		
							parent
							
								
									ed28548fd9
								
							
						
					
					
						commit
						4c592ca72f
					
				
					 3 changed files with 74 additions and 1 deletions
				
			
		
							
								
								
									
										66
									
								
								disko/EDI/configuration.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								disko/EDI/configuration.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,66 @@
 | 
			
		|||
{
 | 
			
		||||
  disko.devices = {
 | 
			
		||||
    disk = {
 | 
			
		||||
      vdb = {
 | 
			
		||||
        device = "/dev/disk/by-path/pci-0000:71:00.0-nvme-1";
 | 
			
		||||
        type = "disk";
 | 
			
		||||
        content = {
 | 
			
		||||
          type = "gpt";
 | 
			
		||||
          partitions = {
 | 
			
		||||
            ESP = {
 | 
			
		||||
              size = "512M";
 | 
			
		||||
              type = "EF00";
 | 
			
		||||
              content = {
 | 
			
		||||
                type = "filesystem";
 | 
			
		||||
                format = "vfat";
 | 
			
		||||
                mountpoint = "/boot";
 | 
			
		||||
                mountOptions = [
 | 
			
		||||
                  "defaults"
 | 
			
		||||
                ];
 | 
			
		||||
              };
 | 
			
		||||
            };
 | 
			
		||||
            luks = {
 | 
			
		||||
              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 = {
 | 
			
		||||
                  root = {
 | 
			
		||||
                    name = "root";
 | 
			
		||||
                    end = "-1G";
 | 
			
		||||
                    content = {
 | 
			
		||||
                      type = "filesystem";
 | 
			
		||||
                      format = "bcachefs";
 | 
			
		||||
                      mountpoint = "/";
 | 
			
		||||
                    };
 | 
			
		||||
                  };
 | 
			
		||||
                  encryptedSwap = {
 | 
			
		||||
                    size = "10M";
 | 
			
		||||
                    content = {
 | 
			
		||||
                      type = "swap";
 | 
			
		||||
                      randomEncryption = true;
 | 
			
		||||
                    };
 | 
			
		||||
                  };
 | 
			
		||||
                  plainSwap = {
 | 
			
		||||
                    size = "100%";
 | 
			
		||||
                    content = {
 | 
			
		||||
                      type = "swap";
 | 
			
		||||
                      resumeDevice = true; # resume from hiberation from this device
 | 
			
		||||
                    };
 | 
			
		||||
                  };
 | 
			
		||||
                };
 | 
			
		||||
              };
 | 
			
		||||
            };
 | 
			
		||||
          };
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue