nixpkgs-suyu/nixos/modules/config/appstream.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
552 B
Nix
Raw Normal View History

2018-12-04 20:33:05 +01: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 20:33:05 +01: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 20:33:05 +01:00
# per component metadata
"/share/metainfo"
2018-12-04 20:33:05 +01:00
# legacy path for above
"/share/appdata"
2018-12-04 20:33:05 +01:00
];
};
}