2018-08-15 09:55:35 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
{
|
2020-04-02 01:16:24 +01:00
|
|
|
meta = {
|
2024-08-27 19:42:49 +01:00
|
|
|
maintainers = lib.teams.freedesktop.members;
|
2020-04-02 01:16:24 +01:00
|
|
|
};
|
|
|
|
|
2018-08-15 09:55:35 +01:00
|
|
|
options = {
|
2024-08-27 19:42:49 +01:00
|
|
|
xdg.autostart.enable = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
2018-08-15 09:55:35 +01:00
|
|
|
default = true;
|
2022-07-19 14:05:45 +01:00
|
|
|
description = ''
|
2020-04-02 01:16:24 +01:00
|
|
|
Whether to install files to support the
|
2022-07-19 14:05:45 +01:00
|
|
|
[XDG Autostart specification](https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html).
|
2018-08-15 09:55:35 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-27 19:42:49 +01:00
|
|
|
config = lib.mkIf config.xdg.autostart.enable {
|
2020-04-02 01:16:24 +01:00
|
|
|
environment.pathsToLink = [
|
2018-08-15 09:55:35 +01:00
|
|
|
"/etc/xdg/autostart"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|