This commit is contained in:
Sefa Eyeoglu 2024-04-29 16:33:59 +03:00 committed by GitHub
commit 68946044d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 1 deletions

View File

@ -103,6 +103,11 @@ in {
];
description = "Extra commands to be run after D-Bus activation.";
};
xdgAutostart = lib.mkEnableOption ''
autostart of applications using
{manpage}`systemd-xdg-autostart-generator(8)`
'';
};
xwayland.enable = lib.mkEnableOption "XWayland" // { default = true; };
@ -275,8 +280,12 @@ in {
Description = "Hyprland compositor session";
Documentation = [ "man:systemd.special(7)" ];
BindsTo = [ "graphical-session.target" ];
Wants = [ "graphical-session-pre.target" ];
Wants = [ "graphical-session-pre.target" ]
++ lib.optional cfg.systemd.xdgAutostart
"xdg-desktop-autostart.target";
After = [ "graphical-session-pre.target" ];
Before =
lib.mkIf cfg.systemd.xdgAutostart [ "xdg-desktop-autostart.target" ];
};
};