add kdeconnect as a service config
This commit is contained in:
2 files changed
+28
-1
No files matched your search
@@ -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;
|
||||
}) ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user