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

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