mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 17:36:33 +01:00
remove newtworkd stuff
This commit is contained in:
parent
ce98dc1481
commit
08c7c980bf
1 changed files with 0 additions and 60 deletions
|
@ -24,66 +24,6 @@
|
|||
|
||||
zramSwap.enable = true;
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv4.ip_forward" = "1";
|
||||
};
|
||||
|
||||
services.dnsmasq = {
|
||||
enable = true;
|
||||
settings = {
|
||||
interface = [ "enp6s0" ];
|
||||
dhcp-range = [ "10.0.0.2,10.0.0.255,255.255.255.0,24h" ];
|
||||
listen-address = "10.0.0.1";
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
wireless = {
|
||||
enable = true;
|
||||
networks = {
|
||||
|
||||
};
|
||||
};
|
||||
firewall = {
|
||||
allowedUDPPorts = [ 53 ];
|
||||
allowedTCPPorts = [ 53 ];
|
||||
};
|
||||
nameservers = [ "2a07:a8c0::fe:e334" "2a07:a8c1::fe:e334" ];
|
||||
useDHCP = lib.mkDefault true;
|
||||
dhcpcd.extraConfig = "nohook resolv.conf";
|
||||
networkmanager.enable = lib.mkForce false;
|
||||
nftables = {
|
||||
enable = true;
|
||||
ruleset = ''
|
||||
table ip nat {
|
||||
chain postrouting {
|
||||
type nat hook postrouting priority 100;
|
||||
oifname "wlo1" masquerade
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks = {
|
||||
# Connect the bridge ports to the bridge
|
||||
"30-enp6s0" = {
|
||||
matchConfig.Name = "enp6s0";
|
||||
networkConfig = {
|
||||
Address = "10.0.0.1/24";
|
||||
};
|
||||
};
|
||||
"30-wlo1" = {
|
||||
matchConfig.Name = "wlo1";
|
||||
networkConfig = {
|
||||
DHCP = "yes";
|
||||
IgnoreCarrierLoss = "3s";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
|
|
Loading…
Reference in a new issue