All checks were successful
build / build (push) Successful in 1m43s
closes #18
25 lines
558 B
Nix
25 lines
558 B
Nix
{ config, lib, pkgs, osConfig, ... }:
|
|
|
|
let cfg = config.sydnix.kdeconnect;
|
|
in {
|
|
options.sydnix.kdeconnect = {
|
|
enable = lib.mkEnableOption "KDE Connect";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
sydnix.impermanence.directories = [
|
|
".config/kdeconnect"
|
|
];
|
|
|
|
services.kdeconnect = {
|
|
enable = true;
|
|
indicator = true;
|
|
};
|
|
|
|
warnings = lib.optional (!osConfig.sydnix.kdeconnect.openFirewall) ''
|
|
The KDE Connect ports were not opened in the NixOS config. Make
|
|
sure someone's allowing these ports!!!
|
|
'';
|
|
};
|
|
}
|