network/nix/nixos-module/defaults.nix

41 lines
899 B
Nix
Raw Normal View History

2021-03-31 01:23:58 +02:00
{ hostName, inputs, pkgs, options, lib, ... }:
2021-03-05 20:05:50 +01:00
{
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
registry = {
nixpkgs.flake = inputs.nixpkgs;
zentralwerk-network.flake = inputs.self;
};
2021-03-05 20:05:50 +01:00
};
documentation = {
enable = false;
nixos.enable = false;
};
2021-03-05 20:05:50 +01:00
environment.systemPackages = with pkgs; [
vim screen git wget psmisc
tcpdump iputils bridge-utils mtr traceroute
dhcpcd ethtool
2021-03-05 20:05:50 +01:00
];
networking.hostName = hostName;
2021-03-22 23:37:25 +01:00
users.users.root.initialHashedPassword = "";
# for vm-packages
2021-03-31 01:23:58 +02:00
virtualisation = lib.optionalAttrs (builtins.hasAttr "qemu" options.virtualisation) {
memorySize = 8192;
2021-03-31 01:23:58 +02:00
msize = 65536;
cores = 4;
diskSize = 8192;
writableStore = true;
writableStoreUseTmpfs = false;
2021-03-31 01:23:58 +02:00
qemu.options = [ "-enable-kvm" ];
};
system.stateVersion = "20.09";
2021-03-05 20:05:50 +01:00
}