hyprland: enabled kdeconnect

This commit is contained in:
Tigor Hutasuhut 2024-10-24 17:27:43 +07:00
parent d1d0d78349
commit 0cd254e942
3 changed files with 29 additions and 0 deletions

View file

@ -27,6 +27,7 @@ in
./swaync.nix ./swaync.nix
./ntfy-sh.nix ./ntfy-sh.nix
./gnome-keyring.nix ./gnome-keyring.nix
./kdeconnect.nix
./wallust ./wallust
]; ];

View file

@ -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
'';
};
}

View file

@ -57,6 +57,8 @@ in
]; ];
}; };
programs.kdeconnect.enable = true;
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
meslo-lgs-nf meslo-lgs-nf
font-awesome font-awesome