feat(kdeconnect): init
This commit is contained in:
20
modules/home/kdeconnect.nix
Normal file
20
modules/home/kdeconnect.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, lib, pkgs, osConfig, ... }:
|
||||
|
||||
let cfg = config.sydnix.kdeconnect;
|
||||
in {
|
||||
options.sydnix.kdeconnect = {
|
||||
enable = lib.mkEnableOption "KDE Connect";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
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!!!
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user