From c60f7f6ee8518c9c8c4f536094fc3d6c1b739188 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sat, 7 Dec 2024 02:35:50 +0100 Subject: [PATCH] have the kde connect file automagically discover the other systems :) --- .../package-configs/plasma-desktop.nix | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/home-manager/desktop/package-configs/plasma-desktop.nix b/home-manager/desktop/package-configs/plasma-desktop.nix index d823fdb..930b1ab 100644 --- a/home-manager/desktop/package-configs/plasma-desktop.nix +++ b/home-manager/desktop/package-configs/plasma-desktop.nix @@ -1,4 +1,25 @@ { + pkgs, + osConfig, + ... +}: let + kdeconnect = + pkgs.writeText "config" + '' + [General] + keyAlgorithm=EC + name=${osConfig.networking.hostName} + customDevices=10.0.0.2,10.0.0.3,10.0.0.4,10.0.0.5 + + ''; +in { + home.file = { + "config" = { + source = "${kdeconnect}"; + target = "~/.config/kdeconnect/config"; + }; + }; + programs.plasma = { enable = true; desktop.mouseActions.verticalScroll = "switchVirtualDesktop";