1{ config, lib, ... }:
2{
3 options = {
4 appstream.enable = lib.mkOption {
5 type = lib.types.bool;
6 default = true;
7 description = ''
8 Whether to install files to support the
9 [AppStream metadata specification](https://www.freedesktop.org/software/appstream/docs/index.html).
10 '';
11 };
12 };
13
14 config = lib.mkIf config.appstream.enable {
15 environment.pathsToLink = [
16 # per component metadata
17 "/share/metainfo"
18 # legacy path for above
19 "/share/appdata"
20 ];
21 };
22
23}