From 792fde12012af099e34f46228298291cfc78f790 Mon Sep 17 00:00:00 2001 From: Christian Ott Date: Sun, 23 Jun 2024 10:26:35 +0200 Subject: [PATCH] add openvpn and dns config for mibex --- configuration.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index fded6c5..745bacc 100644 --- a/configuration.nix +++ b/configuration.nix @@ -24,7 +24,15 @@ # Pick only one of the below networking options. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. - + networking.networkmanager.plugins = [ pkgs.networkmanager-openvpn ]; + networking.networkmanager.dns = "dnsmasq"; + + environment.etc."NetworkManager/dnsmasq.d/00-cave.conf".text = '' + server=/.mibex.ch/172.31.13.27 + server=/huus/192.168.15.2 + server=192.168.15.2 + server=1.1.1.1 + ''; # Set your time zone. time.timeZone = "Europe/Zurich"; @@ -143,9 +151,12 @@ vscodium pciutils usbutils + openvpn + dig ronema.packages.x86_64-linux.default - ]; + networkmanager-openvpn + ]; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true;