From eb2c99313e45025d19475b278f54d9965860525a Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 18 Mar 2024 10:24:10 -0400 Subject: [PATCH] fix(dolphin): add user service --- modules/dolphin.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/dolphin.nix b/modules/dolphin.nix index a5a65fa..7ea0b22 100644 --- a/modules/dolphin.nix +++ b/modules/dolphin.nix @@ -9,6 +9,22 @@ in { plasma5Packages.kio-admin ]; + # To make it work with firefox + # https://www.reddit.com/r/NixOS/comments/xtoubc/comment/koxxr3e/?utm_source=share&utm_medium=web2x&context=3 + systemd.user.services.plasma-dolphin = { + unitConfig = { + Description = "Dolphin file manager"; + PartOf = ["graphical-session.target"]; + }; + path = ["/run/current-system/sw"]; + environment.QT_QPA_PLATFORM = "wayland"; + serviceConfig = { + Type = "dbus"; + BusName = "org.freedesktop.FileManager1"; + ExecStart = "${pkgs.dolphin}/bin/dolphin"; + }; + }; + home-manager.users.${mainUser}.home.packages = with pkgs; [] ++ (with pkgs.plasma5Packages; [