1{ config, lib, ... }:
2{
3 meta = {
4 maintainers = lib.teams.freedesktop.members;
5 };
6
7 options = {
8 xdg.autostart.enable = lib.mkOption {
9 type = lib.types.bool;
10 default = true;
11 description = ''
12 Whether to install files to support the
13 [XDG Autostart specification](https://specifications.freedesktop.org/autostart-spec/latest).
14 '';
15 };
16 };
17
18 config = lib.mkIf config.xdg.autostart.enable {
19 environment.pathsToLink = [
20 "/etc/xdg/autostart"
21 ];
22 };
23
24}