mirror of
https://github.com/Unkn0wnCat/dotfiles.git
synced 2025-05-02 11:25:53 +02:00
Add KDEConnect firewall exception
This commit is contained in:
parent
b54283207d
commit
f5a2346ee7
2 changed files with 9 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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; }
|
||||
];
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue