59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ config, pkgs, hostname, ... }: {
|
|
networking = {
|
|
hostId = "6fa8b74d";
|
|
hostName = "${hostname}";
|
|
|
|
# wireless.enable = false; # Enables wireless support via wpa_supplicant.
|
|
|
|
# Configure network proxy if necessary
|
|
# proxy.default = "http://user:password@proxy:port/";
|
|
# proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
|
|
networkmanager = {
|
|
enable = true;
|
|
};
|
|
|
|
enableIPv6 = true;
|
|
|
|
# bridges = {
|
|
# br0 = { interfaces = [ "eno1" ]; };
|
|
# };
|
|
|
|
# Set up bridge network
|
|
interfaces = {
|
|
eno1 = {
|
|
useDHCP = false;
|
|
ipv4.addresses = [
|
|
{
|
|
address = "10.7.43.10";
|
|
prefixLength = 24;
|
|
}
|
|
];
|
|
wakeOnLan = {
|
|
enable = true;
|
|
policy = [
|
|
"magic"
|
|
];
|
|
};
|
|
};
|
|
|
|
# br0 = {
|
|
# useDHCP = false;
|
|
# ipv4.addresses = [
|
|
# {
|
|
# address = "10.7.43.10";
|
|
# prefixLength = 24;
|
|
# }
|
|
# ];
|
|
# };
|
|
};
|
|
|
|
defaultGateway = {
|
|
address = "10.7.43.1";
|
|
interface = "eno1";
|
|
# interface = "br0";
|
|
};
|
|
nameservers = [ "10.7.43.1" ];
|
|
};
|
|
}
|