server hotspot
This commit is contained in:
parent
e9a3594518
commit
4c0362efb7
7 changed files with 45 additions and 53 deletions
|
|
@ -19,9 +19,24 @@
|
|||
allowedUDPPorts = [ 443 ];
|
||||
};
|
||||
hostName = "nixos-server";
|
||||
networkmanager.ensureProfiles.profiles.home-wifi = {
|
||||
ipv4.addresses = "10.1.0.2/16";
|
||||
ipv6.addresses = "fc01::2/64";
|
||||
networkmanager.ensureProfiles.profiles = {
|
||||
dhcp-ethernet.connection.cloned-mac-address = "0C:0E:76:A6:E6:B6";
|
||||
home-wifi = {
|
||||
ipv4 = {
|
||||
addresses = "10.1.0.1/16";
|
||||
method = "shared";
|
||||
};
|
||||
ipv6 = {
|
||||
addresses = "fc01::1/64";
|
||||
method = "shared";
|
||||
};
|
||||
wifi = {
|
||||
band = "a";
|
||||
channel = 157;
|
||||
channel-width = 80;
|
||||
mode = "ap";
|
||||
};
|
||||
};
|
||||
};
|
||||
wg-quick.interfaces.awg0.configFile = config.sops.templates.awg1-conf.path;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -81,11 +81,7 @@
|
|||
let
|
||||
localNetworks = ''
|
||||
allow 10.0.0.0/16;
|
||||
allow 10.1.0.0/24;
|
||||
allow 10.2.0.0/24;
|
||||
allow fc00::/64;
|
||||
allow fc01::/96;
|
||||
allow fc02::/96;
|
||||
deny all;
|
||||
'';
|
||||
phpPool = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue