nixos-module/defaults.nix: disable documentation, add more systemPackages, optimize qemu settings

This commit is contained in:
Astro 2021-04-02 03:10:16 +02:00
parent b5210fa37d
commit e9d4f1192f
1 changed files with 12 additions and 3 deletions

View File

@ -10,20 +10,29 @@
}; };
}; };
documentation = {
enable = false;
nixos.enable = false;
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim screen git wget vim screen git wget psmisc
tcpdump iputils bridge-utils mtr traceroute tcpdump iputils bridge-utils mtr traceroute
dhcpcd dhcpcd ethtool
]; ];
networking.hostName = hostName; networking.hostName = hostName;
users.users.root.initialHashedPassword = ""; users.users.root.initialHashedPassword = "";
# for vm-packages
virtualisation = lib.optionalAttrs (builtins.hasAttr "qemu" options.virtualisation) { virtualisation = lib.optionalAttrs (builtins.hasAttr "qemu" options.virtualisation) {
memorySize = 4096; memorySize = 8192;
msize = 65536; msize = 65536;
cores = 4; cores = 4;
diskSize = 8192;
writableStore = true;
writableStoreUseTmpfs = false;
qemu.options = [ "-enable-kvm" ]; qemu.options = [ "-enable-kvm" ];
}; };