From 74c8f76cb9812e8e616cbc6d837575ef3359539b Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 7 Jul 2023 11:17:34 +0100 Subject: [PATCH] Configure Static IP for home network --- modules/networking.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/networking.nix b/modules/networking.nix index 2f19423..4be85ac 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -58,6 +58,21 @@ in { }; }; + systemd.network.networks."25-home" = { + name = "wlan0"; + matchConfig = { + Name = "wlan0"; + SSID = "Aminkas-5Ghz"; + }; + address = [ "192.168.13.3/24" ]; + gateway = [ "192.168.13.1" ]; + dns = [ "192.168.13.2" ]; + networkConfig = { + DNSSEC = "no"; + MulticastDNS = "yes"; + }; + }; + # VPN setup systemd.network.netdevs."wg0" = { netdevConfig = {