1
Fork 0
satellite/home/features/desktop/spotify.nix

66 lines
1.8 KiB
Nix
Raw Normal View History

2024-10-13 02:34:34 +02:00
{
inputs,
pkgs,
config,
lib,
...
}:
let
2024-10-13 02:34:34 +02:00
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
2023-08-28 17:18:26 +02:00
themeMap = lib.fix (self: {
2024-10-13 02:34:34 +02:00
"Catppuccin Mocha" = spicePkgs.themes.comfy;
"Catppuccin Latte" = spicePkgs.themes.comfy;
"Catppuccin Frappe" = spicePkgs.themes.comfy;
"Catppuccin Macchiato" = spicePkgs.themes.comfy;
2023-12-10 12:55:54 +01:00
default.light = self."Catppuccin Latte";
default.dark = self."Catppuccin Macchiato";
});
colorschemeMap = lib.fix (self: {
2024-03-07 02:47:37 +01:00
"Catppuccin Mocha" = "catppuccin-mocha";
"Catppuccin Latte" = "catppuccin-latte";
"Catppuccin Frappe" = "catppuccin-frappe";
"Catppuccin Macchiato" = "catppuccin-macchiato";
2023-08-28 17:18:26 +02:00
default.light = self."Catppuccin Latte";
default.dark = self."Catppuccin Macchiato";
});
in
{
2024-02-29 12:44:52 +01:00
imports = [ ./audio.nix ];
2024-05-01 04:35:50 +02:00
home.packages = [ pkgs.spot ];
2024-02-29 12:44:52 +01:00
programs.spicetify = {
enable = true;
theme = config.satellite.theming.get themeMap;
2023-12-10 12:55:54 +01:00
colorScheme = config.satellite.theming.get colorschemeMap;
enabledExtensions = with spicePkgs.extensions; [
2024-10-13 02:34:34 +02:00
adblock
betterGenres
bookmark
fullAlbumDate
fullAppDisplayMod
2024-10-13 02:34:34 +02:00
groupSession
keyboardShortcut
listPlaylistsWithSong # Adds button to show playlists which contain a song
playlistIntersection # Shows stuff that's in two different playlists
2024-10-13 02:34:34 +02:00
savePlaylists # Adds a button to duplicate playlists
showQueueDuration
shuffle # Working shuffle
skipStats # Track my skips
songStats
trashbin
wikify # Shows an artist's wikipedia entry
];
};
# {{{ Persistence
2024-10-13 02:34:34 +02:00
satellite.persistence.at.state.apps.spotify.directories = [ "${config.xdg.configHome}/spotify" ];
2024-10-13 02:34:34 +02:00
satellite.persistence.at.cache.apps.spotify.directories = [ "${config.xdg.cacheHome}/spotify" ];
# }}}
}