rose-pine-nix/modules/home-manager/spotify-player.nix
Wölfchen ff4128f8ea
feat(home-manager): add support for spotify-player (#296)
* 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>
2024-08-19 02:26:08 -04:00

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;
};
};
}