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;
|
||||
}) ];
|
||||
};
|
||||
}
|
||||
@@ -28,6 +28,10 @@
|
||||
|
||||
shells.zsh.antidote.enable = true;
|
||||
|
||||
services = {
|
||||
kdeconnect.enable = true;
|
||||
};
|
||||
|
||||
applications = {
|
||||
gui = {
|
||||
nautilus.enable = true;
|
||||
@@ -104,7 +108,6 @@
|
||||
jetbrains.idea
|
||||
xarchiver
|
||||
kdePackages.kate
|
||||
kdePackages.kdeconnect-kde
|
||||
loupe
|
||||
sshfs
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user