From a92172bfbcb5817cadd178a4605b08573890fee3 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 18 May 2025 18:24:47 -0300 Subject: [PATCH] Opened firewall for mc --- hosts/modules/alexandria/networking.nix | 12 +++++++----- hosts/modules/alexandria/users.nix | 1 - hosts/modules/desktop.nix | 18 +++++++++++------- hosts/modules/programs.nix | 22 +++++++++++----------- 4 files changed, 29 insertions(+), 24 deletions(-) diff --git a/hosts/modules/alexandria/networking.nix b/hosts/modules/alexandria/networking.nix index 504fce6..f518b12 100644 --- a/hosts/modules/alexandria/networking.nix +++ b/hosts/modules/alexandria/networking.nix @@ -4,12 +4,14 @@ networking = { firewall = { allowedTCPPorts = [ - 80 - 443 - 8010 - 9666 + 80 # HTTP + 443 # HTTPS + 25565 # Minecraft + ]; + allowedUDPPorts = [ + 24454 # Minecraft Simple Voice Chat + 25565 # Minecraft ]; - allowedUDPPorts = [ 24454 ]; }; }; } diff --git a/hosts/modules/alexandria/users.nix b/hosts/modules/alexandria/users.nix index db3f3ed..353f28f 100644 --- a/hosts/modules/alexandria/users.nix +++ b/hosts/modules/alexandria/users.nix @@ -10,7 +10,6 @@ gid = 1005; members = [ "user" - "minecraft" "paperless" "vaultwarden" ]; diff --git a/hosts/modules/desktop.nix b/hosts/modules/desktop.nix index 59502ee..b850c0c 100644 --- a/hosts/modules/desktop.nix +++ b/hosts/modules/desktop.nix @@ -18,14 +18,18 @@ # Workstation specific configuration (lib.mkIf hostType.isWorkstation { services = { - displayManager.sddm = { - enable = true; - wayland = { - enable = true; - compositor = "kwin"; - }; + xserver = { + displayManager.gdm.enable = true; + desktopManager.gnome.enable = true; }; - desktopManager.plasma6.enable = true; + # displayManager.sddm = { + # enable = true; + # wayland = { + # enable = true; + # compositor = "kwin"; + # }; + # }; + # desktopManager.plasma6.enable = true; pipewire = { enable = true; alsa.enable = true; diff --git a/hosts/modules/programs.nix b/hosts/modules/programs.nix index d364637..eb8fdf1 100644 --- a/hosts/modules/programs.nix +++ b/hosts/modules/programs.nix @@ -157,17 +157,17 @@ ]; }; - environment.plasma6.excludePackages = ( - with pkgs.kdePackages; - [ - discover - elisa - gwenview - kate - khelpcenter - oxygen - ] - ); + # environment.plasma6.excludePackages = ( + # with pkgs.kdePackages; + # [ + # discover + # elisa + # gwenview + # kate + # khelpcenter + # oxygen + # ] + # ); } )) ];