This commit is contained in:
bogale 2026-11-08 15:08:52 +09:00
commit cf3fec487f
5 changed files with 15 additions and 9 deletions

View file

@ -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 = {