about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/config/appstream.nix
blob: 5b48f6e1705d9ccf6702d9fb40cdfa95596aa8b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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).
      '';
    };
  };

  config = mkIf config.appstream.enable {
    environment.pathsToLink = [
      # per component metadata
      "/share/metainfo"
      # legacy path for above
      "/share/appdata"
    ];
  };

}