Set boot.growPartition = true
This commit is contained in:
		
					parent
					
						
							
								09abf3bee9
							
						
					
				
			
			
				commit
				
					
						a57c5183d8
					
				
			
		
					 2 changed files with 9 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -4,11 +4,5 @@
 | 
			
		|||
    ./hardware-configuration.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # Enable console output on TTY1 and serial console
 | 
			
		||||
  boot.kernelParams = [
 | 
			
		||||
    "console=tty1"
 | 
			
		||||
    "console=ttyS0,115200"
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  services.qemuGuest.enable = true;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,12 +15,20 @@
 | 
			
		|||
 | 
			
		||||
    kernelModules = [ "kvm-amd" ];
 | 
			
		||||
    extraModulePackages = [ ];
 | 
			
		||||
 | 
			
		||||
    # Enable console output on TTY1 and serial console
 | 
			
		||||
    kernelParams = [
 | 
			
		||||
      "console=tty1"
 | 
			
		||||
      "console=ttyS0,115200"
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    growPartition = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  fileSystems."/" = {
 | 
			
		||||
    device = "/dev/disk/by-label/nixos";
 | 
			
		||||
    fsType = "ext4";
 | 
			
		||||
    options = [ "x-nixos.autoresize" "x-initrd.mount" ];
 | 
			
		||||
    autoResize = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  swapDevices = [ ];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue