{ inputs, self, ... }: { flake.homeModules.spotify = { pkgs, config, lib, ... }: { imports = [ inputs.spicetify.homeManagerModules.default ]; options = { features.spicetify.enable = lib.mkOption { type = lib.types.bool; default = false; }; }; config = { home.packages = with pkgs; lib.mkIf (config.features.spicetify.enable == false) [ spotfify ]; programs.spicetify = let spicePkgs = inputs.spicetify.legacyPackages.${pkgs.stdenv.hostPlatform.system}; in lib.mkIf (config.features.spicetify.enable) { enable = true; enabledExtensions = with spicePkgs.extensions; [ hidePodcasts ]; enabledSnippets = with spicePkgs.snippets; [ spinningCdCoverArt oneko hideMiniPlayerButton hideFullScreenButton declutterNowPlayingBar modernScrollbar ]; enabledCustomApps = with spicePkgs.apps; [ # marketplace ]; }; }; }; }