2018-08-15 10:55:35 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
2020-04-02 02:16:24 +02:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.freedesktop.members;
|
|
|
|
};
|
|
|
|
|
2018-08-15 10:55:35 +02:00
|
|
|
options = {
|
|
|
|
xdg.autostart.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
description = ''
|
2020-04-02 02:16:24 +02:00
|
|
|
Whether to install files to support the
|
2018-08-15 10:55:35 +02:00
|
|
|
<link xlink:href="https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html">XDG Autostart specification</link>.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.xdg.autostart.enable {
|
2020-04-02 02:16:24 +02:00
|
|
|
environment.pathsToLink = [
|
2018-08-15 10:55:35 +02:00
|
|
|
"/etc/xdg/autostart"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|