fix(nix-hm): ensure user services are launched with DE
This commit is contained in:
parent
6b1981414b
commit
edf34363aa
@ -185,9 +185,41 @@ in {
|
|||||||
|
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
sessionVariables = config.home.sessionVariables;
|
sessionVariables = config.home.sessionVariables;
|
||||||
|
targets.compositor = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Unit for DE to launch";
|
||||||
|
ConditionEnvironment = [ "WAYLAND_DISPLAY" "DISPLAY" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
services = {
|
services = {
|
||||||
opensnitch-ui.Unit.ConditionEnvironment = [ "WAYLAND_DISPLAY" ];
|
waybar = {
|
||||||
easyeffects.Unit.ConditionEnvironment = [ "WAYLAND_DISPLAY" ];
|
Install.WantedBy = [ "compositor.target" ];
|
||||||
|
Unit = {
|
||||||
|
PartOf = [ "compositor.target" ];
|
||||||
|
After = [ "compositor.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
opensnitch-ui = {
|
||||||
|
Install.WantedBy = [ "compositor.target" ];
|
||||||
|
Unit = {
|
||||||
|
PartOf = [ "compositor.target" ];
|
||||||
|
After = [ "compositor.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
easyeffects = {
|
||||||
|
Install.WantedBy = [ "compositor.target" ];
|
||||||
|
Unit = {
|
||||||
|
PartOf = [ "compositor.target" ];
|
||||||
|
After = [ "compositor.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
cliphist = {
|
||||||
|
Install.WantedBy = [ "compositor.target" ];
|
||||||
|
Unit = {
|
||||||
|
PartOf = [ "compositor.target" ];
|
||||||
|
After = [ "compositor.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -12,8 +12,8 @@ exec-once = blueman-applet
|
|||||||
exec-once = slimbookbattery --minimize
|
exec-once = slimbookbattery --minimize
|
||||||
exec = clight-gui --tray
|
exec = clight-gui --tray
|
||||||
exec = systemd-run --user -u wallpaper-manager ~/.config/hypr/scripts/init-wallpapers.bash || systemctl --user restart wallpaper-manager
|
exec = systemd-run --user -u wallpaper-manager ~/.config/hypr/scripts/init-wallpapers.bash || systemctl --user restart wallpaper-manager
|
||||||
exec-once = systemctl --user start compositor.target
|
|
||||||
exec-once = xwaylandvideobridge
|
exec-once = xwaylandvideobridge
|
||||||
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME
|
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME
|
||||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME
|
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME
|
||||||
exec-once = /usr/lib/polkit-kde-authentication-agent-1
|
exec-once = /usr/lib/polkit-kde-authentication-agent-1
|
||||||
|
exec-once = systemctl --user start compositor.target
|
||||||
|
Loading…
Reference in New Issue
Block a user