flakes/modules/user/spicetify.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

2023-01-23 22:18:27 +07:00
{ config, inputs, pkgs, ... }:
let
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
#adblock = inputs.spotify-adblock.defaultPackage.x86_64-linux;
adblock = pkgs.me.spotify-adblock;
in
{
imports = [ inputs.spicetify-nix.homeManagerModule ];
programs.spicetify = {
spotifyPackage = pkgs.spotify-unwrapped.overrideAttrs(o: {
2023-01-23 23:58:21 +07:00
installPhase = pkgs.lib.replaceStrings ["--prefix PATH"] [
''--prefix SPOTIFY_ADBLOCK_CONFIG : ${adblock}/lib/config.toml \
2023-01-23 22:18:27 +07:00
--prefix LD_PRELOAD : ${adblock}/lib/libspotifyadblock.so \
--prefix PATH''] o.installPhase;
});
enable = true;
2023-06-19 21:59:07 +07:00
theme = spicePkgs.themes.Dribbblish // {
requiredExtensions = [((builtins.head spicePkgs.themes.Dribbblish.requiredExtensions) // { filename = "theme.js"; }) ];
};
2023-01-23 22:18:27 +07:00
colorScheme = "purple";
2023-04-06 20:10:41 +07:00
enabledCustomApps = with spicePkgs.apps; [
lyrics-plus
];
2023-01-23 22:18:27 +07:00
enabledExtensions = with spicePkgs.extensions; [
fullAppDisplay
shuffle # shuffle+ (special characters are sanitized out of ext names)
hidePodcasts
2023-04-06 20:10:41 +07:00
fullAppDisplayMod
skipStats
songStats
history
hidePodcasts
volumePercentage
2023-01-23 22:18:27 +07:00
];
};
}