Add KDEConnect firewall exception

This commit is contained in:
Kevin Kandlbinder 2023-01-04 13:38:26 +01:00
parent b54283207d
commit f5a2346ee7
2 changed files with 9 additions and 0 deletions

View file

@ -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 = {

View file

@ -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; }
];
})
]);
}