Compare commits

..

3 commits

Author SHA1 Message Date
Alexandre Cavalheiro 5e9fa217f2
fix(waybar): adjust icons for the new font 2024-09-20 11:55:36 -03:00
Alexandre Cavalheiro 186f879b73
feat(authentication): move to kde auth agents and services
As well as move the script to common.nix where we can point the correct
binary for the polkit agent
2024-09-20 11:54:50 -03:00
Alexandre Cavalheiro a9104c7cc3
fix(kdeconnect): use a kdeconnect that ships kdeconnectd 2024-09-20 11:52:36 -03:00
5 changed files with 77 additions and 57 deletions

View file

@ -70,6 +70,71 @@
source = ./scripts; source = ./scripts;
recursive = true; recursive = true;
}; };
".local/share/scripts/hyprland/start_services.sh" = {
executable = true;
text = # sh
''
#!/bin/sh
#
# Make sure xdg-desktop-portal-hyprland has access to what it needs
#
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
#
# Start waybar.
#
waybar &
#
# Start xwaylandvideobridge
#
xwaylandvideobridge &
#
# Start wallpaper daemon
#
~/.local/share/scripts/wallpaper.sh &
#
# Start notification daemon.
#
mako &
#
# Start polkit agent
#
${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1
#
# Start kwallet service
#
kwalletd6 &
#
# Start kdeconnect daemon
#
kdeconnectd &
#
# Clipboard manager
#
wl-paste --type text --watch cliphist store &
wl-paste --type image --watch cliphist store &
#
# Start Fcitx5
#
fcitx5 &
#
# Start the blueman applet for managing bluetooth devices
#
blueman-applet &
'';
};
}; };
# Configure XDG # Configure XDG

View file

@ -1,48 +0,0 @@
#!/bin/sh
#
# Make sure xdg-desktop-portal-hyprland has access to what it needs
#
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
#
# Start waybar.
#
waybar &
#
# Start xwaylandvideobridge
#
xwaylandvideobridge &
#
# Start wallpaper daemon
#
~/.local/share/scripts/wallpaper.sh &
#
# Start notification daemon.
#
mako &
#
# Refresh kdeconnect connections
#
kdeconnect-cli --refresh &
#
# Clipboard manager
#
wl-paste --type text --watch cliphist store &
wl-paste --type image --watch cliphist store &
#
# Start Fcitx5
#
fcitx5 &
#
# Start the blueman applet for managing bluetooth devices
#
blueman-applet &

View file

@ -29,7 +29,10 @@
}; };
# Enable KDEConnect # Enable KDEConnect
programs.kdeconnect.enable = true; programs.kdeconnect = {
enable = true;
package = pkgs.kdePackages.kdeconnect-kde;
};
# Enable Docker. # Enable Docker.
virtualisation.docker.enable = true; virtualisation.docker.enable = true;

View file

@ -4,9 +4,9 @@
# Enable polkit, # Enable polkit,
security.polkit.enable = true; security.polkit.enable = true;
# Install an agent to interface with it. # Install a keyring service and manager.
environment.systemPackages = with pkgs; [ polkit_gnome ]; environment.systemPackages = with pkgs; [
libsForQt5.kwallet
# And enable GNOME keyring for registering keys. libsForQt5.kwalletmanager
services.gnome.gnome-keyring.enable = true; ];
} }