mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-23 18:19:44 +01:00
microsoft/hyper-v: add forgotten overcommit_memory
This commit is contained in:
parent
6874b73d55
commit
54e7857eaf
1 changed files with 4 additions and 1 deletions
|
@ -15,8 +15,11 @@ with cloning the nixos-hardware repo at this stage):
|
||||||
# REQUIRED - see: https://github.com/nixos/nixpkgs/issues/9899
|
# REQUIRED - see: https://github.com/nixos/nixpkgs/issues/9899
|
||||||
boot.initrd.kernelModules = ["hv_vmbus" "hv_storvsc"];
|
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
|
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
|
# UNKNOWN - not sure if below are needed; were suggested for VirtualBox and I used them
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
|
Loading…
Reference in a new issue