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