From cf3b18b362488709c29b200071facfdc11fcb306 Mon Sep 17 00:00:00 2001 From: Lilly Date: Mon, 5 Jan 2026 16:07:02 +0000 Subject: [PATCH] Auto-commit: 2026-01-05 16:07:02 --- home/desktop/spicetify.nix | 57 +++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/home/desktop/spicetify.nix b/home/desktop/spicetify.nix index 01d8962..12db6f0 100644 --- a/home/desktop/spicetify.nix +++ b/home/desktop/spicetify.nix @@ -1,33 +1,38 @@ -{ inputs, pkgs, ... }: +{ inputs, pkgs, config, lib, ... }: +let + cfg = config.my.desktop.spicetify; +in { imports = [ inputs.spicetify-nix.homeManagerModules.default ]; - programs.spicetify = - let - spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; - in - { - enable = true; + config = lib.mkIf cfg.enable { + programs.spicetify = + let + spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; + in + { + enable = true; - enabledExtensions = with spicePkgs.extensions; [ - hidePodcasts - shuffle # shuffle+ (special characters are sanitized out of extension names) - betterGenres - lastfm - adblock - beautifulLyrics - aiBandBlocker - ]; - enabledCustomApps = with spicePkgs.apps; [ - lyricsPlus - betterLibrary - newReleases - ]; - enabledSnippets = with spicePkgs.snippets; [ - pointer - ]; - theme = spicePkgs.themes.catppuccin; - colorScheme = "mocha"; + enabledExtensions = with spicePkgs.extensions; [ + hidePodcasts + shuffle # shuffle+ (special characters are sanitized out of extension names) + betterGenres + lastfm + adblock + beautifulLyrics + aiBandBlocker + ]; + enabledCustomApps = with spicePkgs.apps; [ + lyricsPlus + betterLibrary + newReleases + ]; + enabledSnippets = with spicePkgs.snippets; [ + pointer + ]; + theme = spicePkgs.themes.catppuccin; + colorScheme = "mocha"; + }; }; }