3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/config/xdg/autostart.nix

27 lines
541 B
Nix

{ config, lib, ... }:
with lib;
{
meta = {
maintainers = teams.freedesktop.members;
};
options = {
xdg.autostart.enable = mkOption {
type = types.bool;
default = true;
description = lib.mdDoc ''
Whether to install files to support the
[XDG Autostart specification](https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html).
'';
};
};
config = mkIf config.xdg.autostart.enable {
environment.pathsToLink = [
"/etc/xdg/autostart"
];
};
}