diff --git a/modules/home-manager/common.nix b/modules/home-manager/common.nix index 13f8dfe..4600d9d 100644 --- a/modules/home-manager/common.nix +++ b/modules/home-manager/common.nix @@ -70,6 +70,71 @@ source = ./scripts; 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 diff --git a/modules/home-manager/scripts/hyprland/start_services.sh b/modules/home-manager/scripts/hyprland/start_services.sh deleted file mode 100755 index 59c3a09..0000000 --- a/modules/home-manager/scripts/hyprland/start_services.sh +++ /dev/null @@ -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 & diff --git a/specific/desktop/services/authentication.nix b/specific/desktop/services/authentication.nix index 94797f5..64a2b2c 100644 --- a/specific/desktop/services/authentication.nix +++ b/specific/desktop/services/authentication.nix @@ -4,9 +4,9 @@ # Enable polkit, security.polkit.enable = true; - # Install an agent to interface with it. - environment.systemPackages = with pkgs; [ polkit_gnome ]; - - # And enable GNOME keyring for registering keys. - services.gnome.gnome-keyring.enable = true; + # Install a keyring service and manager. + environment.systemPackages = with pkgs; [ + libsForQt5.kwallet + libsForQt5.kwalletmanager + ]; }