Skip to content

Commit

Permalink
fix(spicetify): use old catppuccin theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Anomalocaridid committed Nov 9, 2023
1 parent 26274f7 commit 6adc85a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
26 changes: 20 additions & 6 deletions home/spicetify.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
{ pkgs, inputs, config, ... }:
{ config, pkgs, inputs, ... }:
let
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
in
{
# Needs to be imported here in home manager config, not in flake.nix
imports = [ inputs.spicetify-nix.homeManagerModules.spicetify ];

programs.spicetify = {
enable = true;
theme = spicePkgs.themes.catppuccin;
colorScheme = config.catppuccin.flavour;
# Use pre-refactor (pre-#48) catppuccin theme
# so that the accent can be declaratively defined
theme = spicePkgs.themes.catppuccin //
rec {
name = "catppuccin-${config.catppuccin.flavour}";
src = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "spicetify";
rev = "0b602142da4a436f7012c07137e846034aea82cb";
hash = "sha256-dBJ0vLvCdzpZZNHrsY6V8JQ2t4RB2L5OF/MdHGmIk4Y=";
};
requiredExtensions = [
{
src = "${src}/js";
filename = "${name}.js";
}
];
};
colorScheme = config.catppuccin.accent;
enabledExtensions = with spicePkgs.extensions; [
keyboardShortcut
shuffle
Expand Down
1 change: 1 addition & 0 deletions modules/home-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
inputs.nix-index-database.hmModules.nix-index
inputs.catppuccin.homeManagerModules.catppuccin
inputs.ssbm-nix.homeManagerModule
inputs.spicetify-nix.homeManagerModules.spicetify
];
};
extraSpecialArgs = {
Expand Down

0 comments on commit 6adc85a

Please sign in to comment.