summaryrefslogtreecommitdiff
path: root/nixos/networking.nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2026-01-24 18:26:22 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2026-01-24 18:26:22 +0100
commitf2e1a2ca6b709269912d004f80ae753ca9b3c926 (patch)
treefbf24ecde96ea6eafef0df7c2ff5b8abc6023ce4 /nixos/networking.nix
parenteb6ffa74c2cab5711516b6eb0274d8fb405eaf8e (diff)
nixos: networking: hosts: add hephaistos.aristote.mesh
Diffstat (limited to 'nixos/networking.nix')
-rw-r--r--nixos/networking.nix20
1 files changed, 13 insertions, 7 deletions
diff --git a/nixos/networking.nix b/nixos/networking.nix
index acc33cb..f6311e2 100644
--- a/nixos/networking.nix
+++ b/nixos/networking.nix
@@ -1,4 +1,5 @@
-{...}: {
+{ ... }:
+{
personal.networking = {
enable = true;
bluetooth.enable = true;
@@ -12,10 +13,13 @@
networking = {
hostName = "precision-3571";
hosts = {
- "192.168.1.2" = ["kerberos.local"];
- "192.168.2.1" = ["kerberos.local"];
- "192.168.2.2" = ["hephaistos.local"];
- "192.168.4.10" = ["steam-deck.local"];
+ "192.168.1.2" = [ "kerberos.local" ];
+ "192.168.2.1" = [ "kerberos.local" ];
+ "192.168.2.2" = [
+ "hephaistos.local"
+ "hephaistos.aristote.mesh"
+ ];
+ "192.168.4.10" = [ "steam-deck.local" ];
};
interfaces = {
@@ -25,11 +29,13 @@
};
# NAT
- boot.kernel.sysctl = {"net.ipv4.ip_forward" = 1;};
+ boot.kernel.sysctl = {
+ "net.ipv4.ip_forward" = 1;
+ };
networking = {
nat = {
enable = true;
- internalInterfaces = ["ve-+"];
+ internalInterfaces = [ "ve-+" ];
externalInterface = "wlp0s20f3";
};
};