add firewall exceptions for kdeconnect
This commit is contained in:
parent
d45cdff796
commit
424afe3c83
2 changed files with 14 additions and 3 deletions
|
@ -1,9 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./dunst ./agenix.nix ./diskstation ./picom.nix ];
|
imports = [ ./dunst ./agenix.nix ./diskstation ./picom.nix ./kdeconnect.nix ];
|
||||||
|
|
||||||
home-manager.users.moritz.services = { kdeconnect.enable = true; };
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
|
|
13
modules/services/kdeconnect.nix
Normal file
13
modules/services/kdeconnect.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
ports = {
|
||||||
|
from = 1714;
|
||||||
|
to = 1764;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
home-manager.users.moritz.services = { kdeconnect.enable = true; };
|
||||||
|
networking.firewall = {
|
||||||
|
allowedTCPPortRanges = [ ports ];
|
||||||
|
allowedUDPPortRanges = [ ports ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue