mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Disable wlan on blowhole
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
3376c063fb
commit
cbc32aef09
|
@ -7,7 +7,7 @@ let
|
|||
singleton;
|
||||
|
||||
wlan = "wlp10s0";
|
||||
lan = "enp4s0";
|
||||
lan = "eno1";
|
||||
wan = "eno3";
|
||||
doVPN = "do_vpn0";
|
||||
|
||||
|
@ -58,7 +58,7 @@ in
|
|||
|
||||
services.dhcpd4 = {
|
||||
enable = true;
|
||||
interfaces = [ "${lan}" "${wlan}" ];
|
||||
interfaces = [ "${lan}" ]; # "${wlan}"
|
||||
extraConfig = ''
|
||||
option domain-name-servers ${secret.network.ips.blowhole.ip or ""};
|
||||
option subnet-mask 255.255.255.0;
|
||||
|
@ -77,12 +77,6 @@ in
|
|||
# Disable the in-built iptable based firewall
|
||||
firewall.enable = mkForce false;
|
||||
|
||||
localCommands = ''
|
||||
ip link add enp4s0 type dummy || true
|
||||
ip link set enp4s0 up || true
|
||||
ip addr add ${secret.network.ips.blowhole.ip or ""}/24 dev enp4s0 || true
|
||||
'';
|
||||
|
||||
interfaces = {
|
||||
# Don't do DHCP on the LAN interface
|
||||
"${lan}" = {
|
||||
|
@ -92,13 +86,13 @@ in
|
|||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
"${wlan}" = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [{
|
||||
address = secret.network.ips.blowhole.wlan or "";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
# "${wlan}" = {
|
||||
# useDHCP = false;
|
||||
# ipv4.addresses = [{
|
||||
# address = secret.network.ips.blowhole.wlan or "";
|
||||
# prefixLength = 24;
|
||||
# }];
|
||||
# };
|
||||
# But do DHCP on the WAN interface
|
||||
"${wan}".useDHCP = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue