1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/nixos/modules/config/appstream.nix

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

24 lines
530 B
Nix
Raw Normal View History

2018-12-04 19:33:05 +00:00
{ config, lib, ... }:
{
options = {
2024-08-27 19:42:46 +01:00
appstream.enable = lib.mkOption {
type = lib.types.bool;
2018-12-04 19:33:05 +00:00
default = true;
description = ''
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
'';
};
};
2024-08-27 19:42:46 +01:00
config = lib.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
];
};
}