-
Notifications
You must be signed in to change notification settings - Fork 0
/
spicetify.nix
41 lines (38 loc) · 1.03 KB
/
spicetify.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
pkgs,
spicetify-nix,
...
}: let
spicePkgs = spicetify-nix.legacyPackages.${pkgs.system};
in {
programs.spicetify = let
# use a different version of spicetify-themes than the one provided by
# spicetify-nix
officialThemes = pkgs.fetchgit {
url = "https://github.com/spicetify/spicetify-themes";
sha256 = "sha256-4xSzw2+ulOS5lWgGrOYSFi4d0XrznmKDnJc019OlJII=";
};
in {
enable = true;
theme = {
name = "marketplace";
src = officialThemes;
appendName = true; # theme is located at "${src}/text" not just "${src}"
# changes to make to config-xpui.ini for this theme:
patches = {
"xpui.js_find_8008" = ",(\\w+=)56,";
"xpui.js_repl_8008" = ",\${1}32,";
};
injectCss = true;
replaceColors = true;
overwriteAssets = true;
sidebarConfig = true;
};
enabledCustomApps = with spicePkgs.apps; [marketplace];
enabledExtensions = with spicePkgs.extensions; [
keyboardShortcut
hidePodcasts
adblock
];
};
}