mirror of
https://github.com/nix-community/home-manager
synced 2024-06-14 02:33:38 +02:00
Merge 74d0331c5b
into 2af7c78b7b
This commit is contained in:
commit
68946044d6
|
@ -103,6 +103,11 @@ in {
|
||||||
];
|
];
|
||||||
description = "Extra commands to be run after D-Bus activation.";
|
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; };
|
xwayland.enable = lib.mkEnableOption "XWayland" // { default = true; };
|
||||||
|
@ -275,8 +280,12 @@ in {
|
||||||
Description = "Hyprland compositor session";
|
Description = "Hyprland compositor session";
|
||||||
Documentation = [ "man:systemd.special(7)" ];
|
Documentation = [ "man:systemd.special(7)" ];
|
||||||
BindsTo = [ "graphical-session.target" ];
|
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" ];
|
After = [ "graphical-session-pre.target" ];
|
||||||
|
Before =
|
||||||
|
lib.mkIf cfg.systemd.xdgAutostart [ "xdg-desktop-autostart.target" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user