Files

25 lines
751 B
Nix

{ 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;
}) ];
};
}