Commit 064a3e1

HPCesia <me@hpcesia.com>
2025-10-10 11:50:45
fix: network in niri
1 parent afb7c44
Changed files (2)
modules
desktop
hosts
chaser-kevin
modules/desktop/apps/kdeconnect.nix
@@ -1,4 +1,21 @@
 {
+  flake.modules.nixos.desktop = _: {
+    networking.firewall = {
+      allowedTCPPortRanges = [
+        {
+          from = 1714;
+          to = 1764;
+        }
+      ];
+      allowedUDPPortRanges = [
+        {
+          from = 1714;
+          to = 1764;
+        }
+      ];
+    };
+  };
+
   flake.modules.homeManager.desktop = {osConfig, ...}: {
     services.kdeconnect = {
       enable = true;
modules/hosts/chaser-kevin/networking.nix
@@ -1,7 +1,13 @@
-{
-  flake.modules.nixos."hosts/kevin" = _: {
+{lib, ...}: {
+  flake.modules.nixos."hosts/kevin" = {config, ...}: {
     networking = {
       networkmanager.enable = true;
+      interfaces."wlp0s20f3" = {};
+    };
+
+    services.avahi = lib.mkIf config.services.desktopManager.plasma6.enable {
+      enable = true;
+      openFirewall = true;
     };
   };
 }