Compare commits

..

2 Commits

Author SHA1 Message Date
b4c36afa05
vpn 2025-03-05 18:47:44 +01:00
d613b8de60 mv wireguard to home-manager 2025-02-20 11:13:56 +01:00

View File

@ -84,22 +84,20 @@ in
networking = networking =
{ {
hostName = "Zuse1"; # Define your hostname. hostName = "Zuse1"; # Define your hostname.
#nameservers = [ nameservers = [
# "127.0.0.1" "1.1.1.3"
# "::1" "1.0.0.3"
# "192.168.178.1" "2606:4700:4700::1113"
# "fd00::b2f2:8ff:fe44:3002" "2606:4700:4700::1003"
# "2a02:8071:6240:2400:b2f2:8ff:fe44:3002" ];
# "1.1.1.3" networkmanager = {
# "1.0.0.3" enable = true;
# "2606:4700:4700::1113" #dns = "none";
# "2606:4700:4700::1003" };
#]; #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. # Set your time zone.
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
@ -258,6 +256,7 @@ systemd.tmpfiles.rules = [
"docker" # Docker Root "docker" # Docker Root
"libvirtd" # virtualization "libvirtd" # virtualization
"transmission" # Linux Torrents "transmission" # Linux Torrents
"networkmanager" # Configure Networking
]; ];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
@ -333,7 +332,7 @@ environment.etc.crypttab = {
home-manager # Nix's Home-Manager home-manager # Nix's Home-Manager
egl-wayland # NVIDIA compat egl-wayland # NVIDIA compat
nvidia-vaapi-driver # NVIDIA compat nvidia-vaapi-driver # NVIDIA compat
wireguard-tools networkmanagerapplet # Network Manager Applet
]; ];
programs = { programs = {
@ -460,12 +459,6 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
# services.openssh.enable = true; # 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 # Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you # (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix. # accidentally delete configuration.nix.