Open luna-skye opened 7 months ago
This has been mentioned before, but I can't find the comment to link to it.
This happens because the plasma tools try to connect to a service running in the Plasma session to change the wallpaper.
When Plasma isn't installed, this is not a problem since we detect that the tools aren't there and don't try to run the command.
Possible fixes could be:
Hello, it is quite annoying for home-manager to crash on every start, so I would like to remedy this situation. What would you say, @danth, if I added option (an enum) to KDE module to choose either not fail if wallpaper can't be set or shove the activation to a user systemd unit, defaulting to the first?
Using NixOS Unstable + Home Manager, with Plasma 6 installed but mostly running Hyprland, I still rely on a lot of KDE software and am letting stylix auto-enable targets.
When rebuilding a minimal stylix config (just image and polarity) from Hyprland, Home Manager throws an error about not being able to set the Plasma wallpaper and fails to switch to the new hm environment.
Disabling
stylix.targets.kde.enable
provides a workaround as expected, but at the cost of themes for Qt apps.Rebuilding from a Plasma session succeeds.
Log
systemctl status
info printed when hm fails