diff --git a/configuration.nix b/configuration.nix index 2f75540..d0aed1c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -38,6 +38,20 @@ 100.119.100.64 sherbrooke ''; + networking.firewall = + let kdeConnectPorts = { + from = 1714; + to = 1764; + }; in + { + allowedTCPPortRanges = [ + kdeConnectPorts + ]; + allowedUDPPortRanges = [ + kdeConnectPorts + ]; + }; + # Set your time zone. time.timeZone = "America/Montreal"; diff --git a/home.nix b/home.nix index 18df4b2..b0d92b1 100644 --- a/home.nix +++ b/home.nix @@ -5,6 +5,9 @@ let extra = ./extra; terminal = pkgs.alacritty; in { + imports = [ + ./programs/kdeconnect.nix + ]; home.username = "alice"; home.homeDirectory = "/home/alice"; diff --git a/programs/kdeconnect.nix b/programs/kdeconnect.nix new file mode 100644 index 0000000..2d3af8a --- /dev/null +++ b/programs/kdeconnect.nix @@ -0,0 +1,6 @@ +{ + services.kdeconnect = { + enable = true; + indicator = true; + }; +}