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