aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/darkstar/default.nix
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-05-26 01:18:02 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-05-26 01:18:02 -0700
commit2987dbe2e9031fa26c331db79afe44d0f201b695 (patch)
tree9aa528caa6448bd09c9d347d8456c1b576524115 /hosts/darkstar/default.nix
parent39d2ba38dfc97c7e32e9f543b3916550799b2099 (diff)
downloadnix-2987dbe2e9031fa26c331db79afe44d0f201b695.tar
nix-2987dbe2e9031fa26c331db79afe44d0f201b695.tar.gz
nix-2987dbe2e9031fa26c331db79afe44d0f201b695.tar.bz2
nix-2987dbe2e9031fa26c331db79afe44d0f201b695.tar.lz
nix-2987dbe2e9031fa26c331db79afe44d0f201b695.tar.xz
nix-2987dbe2e9031fa26c331db79afe44d0f201b695.tar.zst
nix-2987dbe2e9031fa26c331db79afe44d0f201b695.zip
Add networking
Diffstat (limited to '')
-rw-r--r--hosts/darkstar/default.nix45
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";