dendrify: comfy-station
This commit is contained in:
22
old/modules/home/kdeconnect.nix
Normal file
22
old/modules/home/kdeconnect.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.hive.kdeconnect;
|
||||
in {
|
||||
options.hive.kdeconnect = {
|
||||
enable = lib.mkEnableOption "Enable KDE Connect";
|
||||
indicatorOnly = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Only enable the incicator service.
|
||||
'';
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.kdeconnect.enable = ! cfg.indicatorOnly;
|
||||
services.kdeconnect.indicator = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user