2023-09-25 18:05:07 +00:00
|
|
|
{ pkgs, ... }:
|
2023-09-15 14:53:38 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
kdeconnect-cli = "${pkgs.plasma5Packages.kdeconnect-kde}/bin/kdeconnect-cli";
|
|
|
|
fortune = "${pkgs.fortune}/bin/fortune";
|
|
|
|
|
|
|
|
script-fortune = pkgs.writeShellScriptBin "fortune" ''
|
|
|
|
${kdeconnect-cli} -d $(${kdeconnect-cli} --list-available --id-only) --ping-msg "$(${fortune})"
|
|
|
|
'';
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
# Hide all .desktop, except for org.kde.kdeconnect.settings
|
|
|
|
xdg.desktopEntries = {
|
|
|
|
"org.kde.kdeconnect.sms" = {
|
|
|
|
exec = "";
|
|
|
|
name = "KDE Connect SMS";
|
|
|
|
settings.NoDisplay = "true";
|
|
|
|
};
|
|
|
|
"org.kde.kdeconnect.nonplasma" = {
|
|
|
|
exec = "";
|
|
|
|
name = "KDE Connect Indicator";
|
|
|
|
settings.NoDisplay = "true";
|
|
|
|
};
|
|
|
|
"org.kde.kdeconnect.app" = {
|
|
|
|
exec = "";
|
|
|
|
name = "KDE Connect";
|
|
|
|
settings.NoDisplay = "true";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
indicator = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.configFile = {
|
|
|
|
"kdeconnect-scripts/fortune.sh".source = "${script-fortune}/bin/fortune";
|
|
|
|
};
|
|
|
|
|
|
|
|
home.persistence = {
|
2023-09-19 17:05:08 +00:00
|
|
|
"/persist/home/gburd".directories = [ ".config/kdeconnect" ];
|
2023-09-15 14:53:38 +00:00
|
|
|
};
|
|
|
|
}
|