159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
23 lines
530 B
Nix
23 lines
530 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options = {
|
|
appstream.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = ''
|
|
Whether to install files to support the
|
|
[AppStream metadata specification](https://www.freedesktop.org/software/appstream/docs/index.html).
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.appstream.enable {
|
|
environment.pathsToLink = [
|
|
# per component metadata
|
|
"/share/metainfo"
|
|
# legacy path for above
|
|
"/share/appdata"
|
|
];
|
|
};
|
|
|
|
}
|