1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-23 10:09:44 +01:00

microsoft/hyper-v: add forgotten overcommit_memory

This commit is contained in:
Mateusz Czapliński 2017-03-24 18:05:08 +01:00
parent 6874b73d55
commit 54e7857eaf

View file

@ -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";