From 0cd254e94254cd1496623ade2ad2da22c42de2f0 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Thu, 24 Oct 2024 17:27:43 +0700 Subject: [PATCH] hyprland: enabled kdeconnect --- home/modules/hyprland/default.nix | 1 + home/modules/hyprland/kdeconnect.nix | 26 ++++++++++++++++++++++++++ system/modules/hyprland.nix | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 home/modules/hyprland/kdeconnect.nix diff --git a/home/modules/hyprland/default.nix b/home/modules/hyprland/default.nix index 345d81f..4b0b928 100644 --- a/home/modules/hyprland/default.nix +++ b/home/modules/hyprland/default.nix @@ -27,6 +27,7 @@ in ./swaync.nix ./ntfy-sh.nix ./gnome-keyring.nix + ./kdeconnect.nix ./wallust ]; diff --git a/home/modules/hyprland/kdeconnect.nix b/home/modules/hyprland/kdeconnect.nix new file mode 100644 index 0000000..ed59917 --- /dev/null +++ b/home/modules/hyprland/kdeconnect.nix @@ -0,0 +1,26 @@ +{ + config, + pkgs, + lib, + ... +}: +let + hyprland = config.profile.hyprland; + inherit (lib) mkIf; +in +{ + config = mkIf hyprland.enable { + services.kdeconnect = { + enable = true; + indicator = true; + }; + + systemd.user.services.kdeconnect-indicator.Service.ExecStart = lib.mkForce '' + ${pkgs.dbus}/bin/dbus-launch ${pkgs.kdePackages.kdeconnect-kde}/bin/kdeconnect-indicator + ''; + + systemd.user.services.kdeconnect.Service.ExecStart = lib.mkForce '' + ${pkgs.dbus}/bin/dbus-launch ${pkgs.kdePackages.kdeconnect-kde}/libexec/kdeconnectd + ''; + }; +} diff --git a/system/modules/hyprland.nix b/system/modules/hyprland.nix index ade5bc4..1124824 100644 --- a/system/modules/hyprland.nix +++ b/system/modules/hyprland.nix @@ -57,6 +57,8 @@ in ]; }; + programs.kdeconnect.enable = true; + fonts.packages = with pkgs; [ meslo-lgs-nf font-awesome