{ config, lib, ... }: with lib; { options = { xdg.sounds.enable = mkOption { type = types.bool; default = true; description = '' Whether to install files to support the XDG Sound Theme specification. ''; }; }; config = mkIf config.xdg.sounds.enable { environment.pathsToLink = [ "/share/sounds" ]; }; }