nixpkgs/nixos/modules/config/appstream.nix

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

26 lines
539 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 = lib.mdDoc ''
Whether to install files to support the
[AppStream metadata specification](https://www.freedesktop.org/software/appstream/docs/index.html).
2018-12-04 19:33:05 +00:00
'';
};
};
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
];
};
}