From b4c36afa05397dfcc776d81784dd76ed58b7a69f Mon Sep 17 00:00:00 2001 From: Leon Wilzer Date: Wed, 5 Mar 2025 18:47:44 +0100 Subject: [PATCH] vpn --- configuration.nix | 44 +++++++++++++++++++------------------------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/configuration.nix b/configuration.nix index e62b68a..59e2aeb 100644 --- a/configuration.nix +++ b/configuration.nix @@ -84,22 +84,20 @@ in networking = { hostName = "Zuse1"; # Define your hostname. - #nameservers = [ - # "127.0.0.1" - # "::1" - # "192.168.178.1" - # "fd00::b2f2:8ff:fe44:3002" - # "2a02:8071:6240:2400:b2f2:8ff:fe44:3002" - # "1.1.1.3" - # "1.0.0.3" - # "2606:4700:4700::1113" - # "2606:4700:4700::1003" - #]; + nameservers = [ + "1.1.1.3" + "1.0.0.3" + "2606:4700:4700::1113" + "2606:4700:4700::1003" + ]; + networkmanager = { + enable = true; + #dns = "none"; + }; + #useDHCP = false; + #dhcpcd.enable = false; + #firewall.checkReversePath = false; # Needed to route all traffic through WireGuard }; - # 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. # Set your time zone. time.timeZone = "Europe/Berlin"; @@ -258,6 +256,7 @@ systemd.tmpfiles.rules = [ "docker" # Docker Root "libvirtd" # virtualization "transmission" # Linux Torrents + "networkmanager" # Configure Networking ]; shell = pkgs.zsh; }; @@ -329,10 +328,11 @@ environment.etc.crypttab = { nixpkgs.config.allowUnfree = true; #nixpkgs.config.segger-jlink.acceptLicense = true; environment.systemPackages = with pkgs; [ - xorg.xauth # Dependency of startx (??) - home-manager # Nix's Home-Manager - egl-wayland # NVIDIA compat - nvidia-vaapi-driver # NVIDIA compat + xorg.xauth # Dependency of startx (??) + home-manager # Nix's Home-Manager + egl-wayland # NVIDIA compat + nvidia-vaapi-driver # NVIDIA compat + networkmanagerapplet # Network Manager Applet ]; programs = { @@ -459,12 +459,6 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Enable the OpenSSH daemon. # services.openssh.enable = true; - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; - # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix.