{ lib, config, ... }: let cfg = config.pim.tidal; in { # TODO: this is bad and broken options.pim.tidal.enable = lib.mkEnableOption "tidal"; config = lib.mkIf cfg.enable { users.users.pim.extraGroups = ["audio"]; }; }