diff options
Diffstat (limited to 'hosts/darkstar')
-rw-r--r-- | hosts/darkstar/default.nix | 45 |
1 files changed, 34 insertions, 11 deletions
diff --git a/hosts/darkstar/default.nix b/hosts/darkstar/default.nix index 19d15a0..1c3b3a8 100644 --- a/hosts/darkstar/default.nix +++ b/hosts/darkstar/default.nix @@ -1,6 +1,9 @@ { config, pkgs, ... }: { boot = { initrd.kernelModules = [ "zfs" ]; + kernel.sysctl = { + "net.ipv4.ip_forward" = true; + }; kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; loader = { efi = { @@ -47,20 +50,40 @@ networking = { hostId = "f9ca5efe"; hostName = "darkstar"; + defaultGateway = "192.168.1.1"; domain = "bitgnome.net"; - #networkmanager.enable = true; - nftables.enable = true; - wireless.iwd = { - enable = true; - settings = { - IPv6 = { - Enabled = true; - }; - Settings = { - AutoConnect = true; - }; + interfaces = { + enp116s0 = { + ipv4.addresses = [ + { address = "192.168.1.16"; prefixLength = 24; } + ]; + }; + vlan201 = { + useDHCP = true; }; }; + nameservers = [ "192.168.1.1" ]; + #nat = { + # enable = true; + # #enableIPv6 = true; + # externalInterface = "enp117s0.201"; + # internalInterfaces = [ "enp116s0" ]; + #}; + nftables.enable = true; + vlans = { + vlan201 = { id=201; interface="enp117s0"; }; + }; + #wireless.iwd = { + # enable = true; + # settings = { + # IPv6 = { + # Enabled = true; + # }; + # Settings = { + # AutoConnect = true; + # }; + # }; + #}; }; system.stateVersion = "23.11"; |