diff --git a/nixos/modules/default.nix b/nixos/modules/default.nix index 57f4e2c..3533f89 100644 --- a/nixos/modules/default.nix +++ b/nixos/modules/default.nix @@ -42,6 +42,7 @@ in { kevin.networking.enable = true; kevin.networking.avahi.enable = true; kevin.networking.firewall.wireguard = true; + kevin.networking.firewall.kdeConnect = true; kevin.audio.enable = true; kevin.desktop.enable = true; kevin.desktop.type = "gnome"; @@ -52,6 +53,8 @@ in { environment.systemPackages = with pkgs; [ firefox league-of-moveable-type + hunspell + hunspellDicts.de_DE ]; programs.gnupg.agent = { diff --git a/nixos/modules/networking.nix b/nixos/modules/networking.nix index de0333e..a515263 100644 --- a/nixos/modules/networking.nix +++ b/nixos/modules/networking.nix @@ -9,6 +9,7 @@ in { ssh.enable = mkEnableOption "ssh"; firewall.wireguard = mkEnableOption "wireguard exceptions"; firewall.syncthing = mkEnableOption "syncthing exceptions"; + firewall.kdeConnect = mkEnableOption "KDE Connect exceptions"; }; config = mkIf cfg.enable (mkMerge [ @@ -59,5 +60,10 @@ in { networking.firewall.allowedTCPPorts = [ 22000 ]; networking.firewall.allowedUDPPorts = [ 22000 21027 ]; }) + (mkIf cfg.firewall.kdeConnect { + networking.firewall.allowedUDPPortRanges = [ + { from = 1714; to = 1764; } + ]; + }) ]); }