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 =
{
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,11 +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
wireguard-tools
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 = {
@ -460,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.