done
This commit is contained in:
parent
5489d920ae
commit
cf3fec487f
5 changed files with 15 additions and 9 deletions
|
|
@ -19,11 +19,18 @@
|
|||
allowedUDPPorts = [ 443 ];
|
||||
};
|
||||
hostName = "nixos-server";
|
||||
nat = {
|
||||
extraCommands = ''
|
||||
${pkgs.iproute2}/bin/ip rule add lookup main priority 29588 from \
|
||||
${config.networking.networkmanager.ensureProfiles.profiles.home-wifi.ipv4.addresses}
|
||||
'';
|
||||
internalInterfaces = [ "wlp2s0" ];
|
||||
};
|
||||
networkmanager.ensureProfiles.profiles = {
|
||||
dhcp-ethernet.connection.cloned-mac-address = "0C:0E:76:A6:E6:B6";
|
||||
home-wifi = {
|
||||
ipv4 = {
|
||||
addresses = "10.3.0.1/16";
|
||||
addresses = "10.1.0.1/16";
|
||||
method = "shared";
|
||||
};
|
||||
wifi = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue