nichts/nyx/homes/notashelf/programs/graphical/apps/spotify/default.nix
2024-04-09 23:11:33 +02:00

50 lines
1 KiB
Nix

{
lib,
osConfig,
inputs,
self',
pkgs,
...
}: let
inherit (lib) mkIf;
inherit (osConfig) modules;
sys = modules.system;
prg = sys.programs;
spicePkgs = inputs.spicetify.packages.${pkgs.system}.default;
in {
imports = [inputs.spicetify.homeManagerModule];
config = mkIf prg.spotify.enable {
programs.spicetify = {
spotifyPackage = self'.packages.spotify-wrapped;
enable = true;
injectCss = true;
replaceColors = true;
overwriteAssets = true;
sidebarConfig = true;
enabledCustomApps = with spicePkgs.apps; [
lyrics-plus
new-releases
];
theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha";
enabledExtensions = with spicePkgs.extensions; [
fullAppDisplay
shuffle # shuffle+ (special characters are sanitized out of ext names)
hidePodcasts
playlistIcons
lastfm
genre
historyShortcut
bookmark
fullAlbumDate
groupSession
popupLyrics
];
};
};
}