mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	microsoft/hyper-v: add forgotten overcommit_memory
This commit is contained in:
		@@ -15,8 +15,11 @@ with cloning the nixos-hardware repo at this stage):
 | 
			
		||||
    # REQUIRED - see: https://github.com/nixos/nixpkgs/issues/9899
 | 
			
		||||
    boot.initrd.kernelModules = ["hv_vmbus" "hv_storvsc"];
 | 
			
		||||
 | 
			
		||||
    # OPTIONAL - use 800x600 resolution for text console, to make it easy to fit on screen
 | 
			
		||||
    # RECOMMENDED
 | 
			
		||||
    # - use 800x600 resolution for text console, to make it easy to fit on screen
 | 
			
		||||
    boot.kernelParams = ["video=hyperv_fb:800x600"];  # https://askubuntu.com/a/399960
 | 
			
		||||
    # - avoid a problem with `nix-env -i` running out of memory
 | 
			
		||||
    boot.kernel.sysctl."vm.overcommit_memory" = "1"; # https://github.com/NixOS/nix/issues/421
 | 
			
		||||
 | 
			
		||||
    # UNKNOWN - not sure if below are needed; were suggested for VirtualBox and I used them
 | 
			
		||||
    boot.loader.grub.device = "/dev/sda";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user