Hopefully fix systemd services

This commit is contained in:
Nathan McCarty 2023-07-07 03:57:45 -04:00
parent 0a17179443
commit 71adb46aab
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 17 additions and 4 deletions

View File

@ -48,8 +48,8 @@ in with lib; {
config.home.sessionVariables))} config.home.sessionVariables))}
# Setup missing XDG variables # Setup missing XDG variables
env = XDG_SESSION_TYPE,wayland # env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland # env = XDG_SESSION_DESKTOP,Hyprland
# Make applications respect wayland # Make applications respect wayland
env = GDK_BACKEND,wayland,x11 env = GDK_BACKEND,wayland,x11
@ -203,8 +203,21 @@ in with lib; {
bindr = CAPS, caps_lock, exec, swayosd --caps-lock bindr = CAPS, caps_lock, exec, swayosd --caps-lock
# systemd integration # systemd integration
exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && sleep 2 && systemctl --user start hyprland-session.target exec-once=dbus-update-activation-environment --systemd ${
lib.concatStringsSep "" ([
"DISPLAY"
"WAYLAND_DISPLAY"
"HYPRLAND_INSTANCE_SIGNATURE"
"XDG_CURRENT_DESKTOP"
"XDG_SESSION_TYPE"
"XDG_SESSION_DESKTOP"
"XDG_DESKTOP_PORTAL_DIR"
"GDK_BACKEND"
"QT_QPA_PLATFORM"
"SDL_VIDEODRIVER"
"CLUTTER_BACKEND"
] ++ builtins.attrNames config.home.sessionVariables)
} && sleep 2 && systemctl --user start hyprland-session.target
## Window rules ## Window rules