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

26 lines
552 B
Nix
Raw Normal View History

2018-12-04 19:33:05 +00:00
{ config, lib, ... }:
with lib;
{
options = {
appstream.enable = mkOption {
type = types.bool;
default = true;
description = ''
Whether to install files to support the
2018-12-04 19:33:05 +00:00
<link xlink:href="https://www.freedesktop.org/software/appstream/docs/index.html">AppStream metadata specification</link>.
'';
};
};
config = mkIf config.appstream.enable {
environment.pathsToLink = [
2018-12-04 19:33:05 +00:00
# per component metadata
"/share/metainfo"
2018-12-04 19:33:05 +00:00
# legacy path for above
"/share/appdata"
2018-12-04 19:33:05 +00:00
];
};
}