From 9e51e731e2b6c4f51a1fbe3035626e63806566b8 Mon Sep 17 00:00:00 2001 From: Lorde_soup Date: Sat, 25 Jan 2025 00:09:42 -0500 Subject: [PATCH] fixed spicetify :3 --- mods/chat_spice.nix | 56 +++++++++++++++++++++++++++++++++++++++++++++ mods/mini-spice.nix | 18 +++++++++++++++ mods/spicetify.nix | 50 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 mods/chat_spice.nix create mode 100644 mods/mini-spice.nix create mode 100644 mods/spicetify.nix diff --git a/mods/chat_spice.nix b/mods/chat_spice.nix new file mode 100644 index 0000000..be6670c --- /dev/null +++ b/mods/chat_spice.nix @@ -0,0 +1,56 @@ +{ config, pkgs, inputs, lib, ... }: + +let + spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system}; +in +{ + options.spicetify.enable = lib.mkEnableOption "Enable Spicetify integration"; + + config = lib.mkIf config.spicetify.enable { + # Import the Spicetify NixOS module for system configuration + imports = [ + inputs.spicetify-nix.nixosModules.default + ]; + + # Add the `spicetify-cli` tool to the system packages + environment.systemPackages = with pkgs; [ + spicetify-cli + ]; + + # Configure Spicetify with extensions, themes, and other customizations + spicetify = { + enabledExtensions = with spicePkgs.extensions; [ + fullAlbumDate + goToSong + listPlaylistsWithSong + playlistIntersection + skipStats + phraseToPlaylist + showQueueDuration + betterGenres + playNext + # Uncomment the following lines to enable more extensions + # adblock + hidePodcasts + # shuffle + ]; + + # Uncomment and configure custom apps if needed + # enabledCustomApps = with spicePkgs.apps; [ + # newReleases + # ncsVisualizer + # ]; + + # Uncomment and configure snippets if needed + # enabledSnippets = with spicePkgs.snippets; [ + # rotatingCoverart + # pointer + # ]; + + # Set the theme and optional color scheme + theme = spicePkgs.themes.comfy; + # colorScheme = "hikari"; + }; + }; +} + diff --git a/mods/mini-spice.nix b/mods/mini-spice.nix new file mode 100644 index 0000000..c15f858 --- /dev/null +++ b/mods/mini-spice.nix @@ -0,0 +1,18 @@ +{ pkgs, inputs, ... }: + +{ + programs.spicetify = + let + spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system}; + in + { + enable = true; + enabledExtensions = with spicePkgs.extensions; [ + adblock + hidePodcasts + shuffle # shuffle+ (special characters are sanitized out of extension names) + ]; + theme = spicePkgs.themes.catppuccin; + colorScheme = "mocha"; + }; +} diff --git a/mods/spicetify.nix b/mods/spicetify.nix new file mode 100644 index 0000000..252832c --- /dev/null +++ b/mods/spicetify.nix @@ -0,0 +1,50 @@ +{ config, pkgs, inputs, lib, ...}: + +let + spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system}; +in +{ + + + options = { + spicetify.enable = lib.mkEnableOption "enable spice" // lib.mkDefault true; + }; + + config = lib.mkIf config.spicetify.enable { + imports = [ + # For NixOS + inputs.spicetify-nix.nixosModules.default + ]; + + enviroment.systemPackages = with pkgs; [ + spicetify-cli + ]; + + enabledExtensions = with spicePkgs.extensions; [ + fullAlbumDate + goToSong + listPlaylistsWithSong + playlistIntersection + skipStats + phraseToPlaylist + showQueueDuration + betterGenres + playNext + #adblock + hidePodcasts + #shuffle # shuffle+ (special characters are sanitized out of extension names) + ]; + #enabledCustomApps = with spicePkgs.apps; [ + # newReleases + # ncsVisualizer + #]; + #enabledSnippets = with spicePkgs.snippets; [ + # rotatingCoverart + # pointer + #]; + + theme = spicePkgs.themes.comfy; + #colorScheme = "hikari"; + }; + +}