at 24.11-pre 529 B view raw
1{ config, lib, ... }: 2 3with lib; 4{ 5 options = { 6 appstream.enable = mkOption { 7 type = types.bool; 8 default = true; 9 description = '' 10 Whether to install files to support the 11 [AppStream metadata specification](https://www.freedesktop.org/software/appstream/docs/index.html). 12 ''; 13 }; 14 }; 15 16 config = mkIf config.appstream.enable { 17 environment.pathsToLink = [ 18 # per component metadata 19 "/share/metainfo" 20 # legacy path for above 21 "/share/appdata" 22 ]; 23 }; 24 25}