From 2574634c2803ce98c1aad4ce2b34e89c87369131 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 24 Sep 2025 22:34:43 +0200 Subject: [PATCH] feat(tyr): setup static ip and dns over https. --- hosts/tyr/configuration.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hosts/tyr/configuration.nix b/hosts/tyr/configuration.nix index cd11d75..db9176f 100644 --- a/hosts/tyr/configuration.nix +++ b/hosts/tyr/configuration.nix @@ -17,6 +17,24 @@ # Get nicer hostname networking.hostName = "tyr"; # Define your hostname. + # Enable and setup networking + networking.networkmanager.enable = true; + networking.interfaces.enp1s0.ipv4.addresses = [ + { + address = "192.168.0.5"; + prefixLength = 24; + } + ]; + networking.defaultGateway = "192.168.0.1"; + networking.nameservers = ["194.242.2.4#base.dns.mullvad.net"]; + services.resolved = { + enable = true; + fallbackDns = ["194.242.2.4#base.dns.mullvad.net"]; + dnssec = "true"; + dnsovertls = "true"; + domains = ["~."]; + }; + # Enable flakes nix.settings.experimental-features = ["nix-command" "flakes"];