From d55c831e7326ac1121c06a7be4df3b187f62b9d4 Mon Sep 17 00:00:00 2001 From: Adrian Gunnar Lauterer Date: Mon, 8 Apr 2024 20:01:01 +0200 Subject: [PATCH] firewall fix + base packages --- machines/galadriel/configuration.nix | 13 +++++-------- profiles/base.nix | 18 ++++++++++++++++-- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/machines/galadriel/configuration.nix b/machines/galadriel/configuration.nix index 12d9074..9381a91 100644 --- a/machines/galadriel/configuration.nix +++ b/machines/galadriel/configuration.nix @@ -81,8 +81,8 @@ sonixd unpackerr qbittorrent-nox - python310 - python310Packages.torchWithCuda + python3 + python3Packages.torchWithCuda ollama ]; @@ -124,18 +124,15 @@ services.tailscale.enable = true; # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - networking.firewall.enable = false; + networking.firewall.allowedTCPPorts = [ 22 80 8090 8096 443 433 6969 1194 ]; + networking.firewall.allowedUDPPorts = [ 22 80 8090 8096 443 433 6969 1194 ]; + networking.firewall.enable = true; ##storage #autofs #services.autofs.enable = true; - - #smb share #nfs share #services.nfs.server = { diff --git a/profiles/base.nix b/profiles/base.nix index d832cc3..cdc6bea 100644 --- a/profiles/base.nix +++ b/profiles/base.nix @@ -6,6 +6,22 @@ imports = ../services/ssh.nix ]; + + + + environment.systemPackages = with pkgs; [ + vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. + wget + git + rsync + ripgrep + tailscale + ]; + + + + + #system vide bash aliases. environment.shellAliases = { gst="git status"; @@ -20,8 +36,6 @@ imports = programs.bash.shellAliases = config.environment.shellAliases; - - environment.interactiveShellInit = '' alias gst='git status' alias gcm='git commit -m'