add kdeconnect as a service config

This commit is contained in:
greyweather committed 2026-09-07 01:17:58 +01:00
1 parent 237582057e
commit ff641f5412
2 files changed
+28 -1

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
{ inputs, ... }: let
optionName = "features.services.kdeconnect.enable";
in {
imports = [ (inputs.helpers.mkStandardFeature.flakeModule "graphics" optionName "KDE Connect") ];
flake.nixosModules.graphics = { config, lib, ... }: {
imports = [ (inputs.helpers.mkStandardFeature.nixosModule { inherit config optionName; } {}) ];
config = lib.mkIf (config.features.services.kdeconnect.enable) {
networking.firewall.allowedTCPPortRanges = [
{
from = 1714;
to = 1764;
}
];
};
};
flake.homeModules.graphics = { config, lib, ... }: {
imports = [ (inputs.helpers.mkStandardFeature.homeModule { inherit config optionName; } {
services.kdeconnect.enable = true;
}) ];
};
}