mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-08 17:34:03 +01:00
29 lines
558 B
Nix
29 lines
558 B
Nix
let VARIABLES = import ../src/variables.nix; in {
|
|
networking = {
|
|
hostName = VARIABLES.hostname;
|
|
|
|
networkmanager = {
|
|
enable = true;
|
|
wifi.macAddress = "random";
|
|
ethernet.macAddress = "random";
|
|
|
|
unmanaged = [ "interface-name:ve-*" ];
|
|
};
|
|
|
|
useHostResolvConf = true;
|
|
|
|
nat = {
|
|
enable = true;
|
|
internalInterfaces = [ "ve-+" ];
|
|
externalInterface = "wg-mullvad";
|
|
|
|
forwardPorts = [
|
|
{
|
|
destination = "192.168.100.11:80";
|
|
sourcePort = 11918;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|