mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 00:34:24 +01:00
741f40ce56
No ports need to be forwarded right now, however this is a good example for when ports need to be forwarded from a container to the host in the future.
22 lines
430 B
Nix
22 lines
430 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";
|
|
};
|
|
};
|
|
}
|