b419708566
Updated packages and their names Fixed randomize mac address Updated zen.nix to fix the config
41 lines
803 B
Nix
41 lines
803 B
Nix
{pkgs, ...}: {
|
|
imports = [
|
|
./avahi.nix
|
|
];
|
|
|
|
networking = {
|
|
nameservers = ["1.1.1.1" "1.0.0.1"];
|
|
|
|
nftables.enable = true;
|
|
|
|
networkmanager = {
|
|
enable = true;
|
|
dns = "none";
|
|
wifi.powersave = true;
|
|
plugins = with pkgs; [
|
|
networkmanager-openvpn
|
|
];
|
|
};
|
|
|
|
# MAC address randomization via wpa_supplicant
|
|
wireless.extraConfig = ''
|
|
mac_addr=1
|
|
'';
|
|
|
|
useDHCP = false;
|
|
dhcpcd.enable = false;
|
|
};
|
|
|
|
services = {
|
|
openssh = {
|
|
enable = true;
|
|
settings.UseDns = true;
|
|
};
|
|
};
|
|
|
|
# Don't wait for network startup
|
|
systemd.services.NetworkManager-wait-online.serviceConfig.ExecStart = ["" "${pkgs.networkmanager}/bin/nm-online -q"];
|
|
# Editable /etc/hosts for htb machines
|
|
environment.etc.hosts.enable = false;
|
|
}
|