cleanup
This commit is contained in:
@@ -2,25 +2,19 @@
|
||||
let
|
||||
hostname = "jallen-nas";
|
||||
ipAddress = "10.0.1.18";
|
||||
ipAddress2 = "10.0.1.19";
|
||||
gateway = "10.0.1.1";
|
||||
allowedPorts = [
|
||||
2342
|
||||
3493
|
||||
61208
|
||||
9090
|
||||
9000
|
||||
# config.services.tailscale.port
|
||||
# 22
|
||||
];
|
||||
in
|
||||
{
|
||||
# Networking configs wlp7s0
|
||||
# Networking configs
|
||||
networking = {
|
||||
hostName = hostname;
|
||||
|
||||
useNetworkd = true;
|
||||
|
||||
hostId = "4b501480";
|
||||
|
||||
# Enable Network Manager
|
||||
# Disable Network Manager
|
||||
networkmanager.enable = false;
|
||||
|
||||
interfaces = {
|
||||
@@ -33,25 +27,23 @@ in
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# br0 = {
|
||||
# useDHCP = false;
|
||||
# ipv4.addresses = [
|
||||
# {
|
||||
# address = ipAddress;
|
||||
# prefixLength = 24;
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
wlp6s0 = {
|
||||
useDHCP = true;
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = ipAddress2;
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# bridges = {
|
||||
# br0 = {
|
||||
# interfaces = [ "wlp6s0" ];
|
||||
# };
|
||||
# };
|
||||
defaultGateway = {
|
||||
interface = "wlp7s0";
|
||||
address = gateway;
|
||||
metric = 1;
|
||||
};
|
||||
|
||||
defaultGateway.address = gateway;
|
||||
nameservers = [ gateway ];
|
||||
|
||||
wireless = {
|
||||
@@ -60,42 +52,32 @@ in
|
||||
secretsFile = config.sops.secrets."wifi".path;
|
||||
allowAuxiliaryImperativeNetworks = true;
|
||||
interfaces = [
|
||||
"wlp6s0"
|
||||
"wlp7s0"
|
||||
];
|
||||
networks = {
|
||||
"Joey's Jungle 6G" = {
|
||||
# pskRaw = "ext:PSK";
|
||||
# priority = 1000;
|
||||
# pskRaw = "ext:PSK";
|
||||
priority = 1000;
|
||||
psk = "kR8v&3Qd";
|
||||
extraConfig = ''
|
||||
key_mgmt=SAE
|
||||
ieee80211w=2
|
||||
'';
|
||||
};
|
||||
# "Joey's Jungle 5G" = {
|
||||
# pskRaw = "ext:PSK";
|
||||
# priority = 1;
|
||||
# };
|
||||
"Joey's Jungle 5G" = {
|
||||
pskRaw = "ext:PSK";
|
||||
priority = -100;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowPing = true;
|
||||
extraCommands = "iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns"; # TODO is this needed?
|
||||
allowedTCPPorts = allowedPorts;
|
||||
allowedUDPPorts = allowedPorts;
|
||||
|
||||
# always allow traffic from your Tailscale network
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
};
|
||||
|
||||
# nat = {
|
||||
# enable = true;
|
||||
# internalInterfaces = ["ve-+"];
|
||||
# externalInterface = "wlp9s0";
|
||||
# # Lazy IPv6 connectivity for the container
|
||||
# enableIPv6 = true;
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user