nichts/nyx/modules/core/common/docs/default.nix

17 lines
281 B
Nix
Raw Normal View History

2024-04-09 23:11:33 +02:00
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.modules.documentation;
in {
config = mkIf cfg.enable {
environment.etc = {
"nyxos/options.md".source = cfg.markdownPackage;
"nyxos/options.html".source = cfg.htmlPackage;
};
};
}