From 4efc3d9af57f4a73987ea3f27619e687addaefbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 9 Nov 2024 08:45:58 +0100 Subject: [PATCH] add kdeconnect --- programs/desktop/default.nix | 13 +++++++++++++ programs/desktop/home-manager.nix | 4 +++- services/desktop/default.nix | 5 +++++ services/desktop/kdeconnect.nix | 7 +++++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 services/desktop/default.nix create mode 100644 services/desktop/kdeconnect.nix diff --git a/programs/desktop/default.nix b/programs/desktop/default.nix index 2dc3b403..21d25098 100644 --- a/programs/desktop/default.nix +++ b/programs/desktop/default.nix @@ -12,4 +12,17 @@ environment.plasma6.excludePackages = with pkgs.kdePackages; [ pkgs.elisa ]; + + networking.firewall.allowedTCPPortRanges = [ + { + from = 1714; + to = 1764; + } + ]; + networking.firewall.allowedUDPPortRanges = [ + { + from = 1714; + to = 1764; + } + ]; } diff --git a/programs/desktop/home-manager.nix b/programs/desktop/home-manager.nix index 662ef047..c2941a6c 100644 --- a/programs/desktop/home-manager.nix +++ b/programs/desktop/home-manager.nix @@ -1,4 +1,4 @@ -{pkgs, ...}: { +{pkgs, nixos-config, ...}: { imports = [ ./firefox ./password-manager.nix @@ -6,8 +6,10 @@ ./games ./ims.nix ./audacious.nix + "${nixos-config}/services/desktop" ]; home.packages = with pkgs; [ kdePackages.kontact ]; + } diff --git a/services/desktop/default.nix b/services/desktop/default.nix new file mode 100644 index 00000000..a39b4c76 --- /dev/null +++ b/services/desktop/default.nix @@ -0,0 +1,5 @@ +{...}: { + imports = [ + ./kdeconnect.nix + ]; +} diff --git a/services/desktop/kdeconnect.nix b/services/desktop/kdeconnect.nix new file mode 100644 index 00000000..800e86fd --- /dev/null +++ b/services/desktop/kdeconnect.nix @@ -0,0 +1,7 @@ +{pkgs, ...}: { + services.kdeconnect = { + enable = true; + indicator = true; + package = pkgs.kdePackages.kdeconnect-kde; + }; +}