ff4128f8ea
* feat(home-manager): add support for spotify-player * fix: make use of `inherit` Co-authored-by: seth <getchoo@tuta.io> * feat(spotify-player): enable in tests * chore: update spotify-player input --------- Co-authored-by: seth <getchoo@tuta.io>
16 lines
491 B
Nix
16 lines
491 B
Nix
{ config, lib, ... }:
|
|
let
|
|
inherit (config.catppuccin) sources;
|
|
cfg = config.programs.spotify-player.catppuccin;
|
|
enable = cfg.enable && config.programs.spotify-player.enable;
|
|
in
|
|
{
|
|
options.programs.spotify-player.catppuccin = lib.ctp.mkCatppuccinOpt { name = "spotify-player"; };
|
|
|
|
config = lib.mkIf enable {
|
|
programs.spotify-player = {
|
|
settings.theme = "Catppuccin-${cfg.flavor}";
|
|
inherit (lib.importTOML "${sources.spotify-player}/theme.toml") themes;
|
|
};
|
|
};
|
|
}
|