From 52d7a9f2f0501761c7c4c8d3a4344c0f423967f0 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:10:16 +0200 Subject: [PATCH] Init KDE Connect --- home/system/kdeconnect/default.nix | 6 ++++++ hosts/laptop/configuration.nix | 9 +++++++++ hosts/laptop/home.nix | 1 + 3 files changed, 16 insertions(+) create mode 100644 home/system/kdeconnect/default.nix diff --git a/home/system/kdeconnect/default.nix b/home/system/kdeconnect/default.nix new file mode 100644 index 0000000..544c162 --- /dev/null +++ b/home/system/kdeconnect/default.nix @@ -0,0 +1,6 @@ +{ + services.kdeconnect = { + enable = true; + indicator = true; + }; +} diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index c874a83..7dc3bcf 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -26,6 +26,15 @@ home-manager.users."${config.var.username}" = import ./home.nix; + # For KDEConnect (Remove this if not needed) + networking.firewall = rec { + allowedTCPPortRanges = [{ + from = 1714; + to = 1764; + }]; + allowedUDPPortRanges = allowedTCPPortRanges; + }; + # Don't touch this system.stateVersion = "24.05"; } diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index 1fe8882..1b9a841 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -33,6 +33,7 @@ ../../home/system/mime ../../home/system/udiskie ../../home/system/clipman + ../../home/system/kdeconnect ./secrets # CHANGEME: You should probably remove this line, this is where I store my secrets ];