diff --git a/flake.lock b/flake.lock index 1e9d62b..c69d0fe 100644 --- a/flake.lock +++ b/flake.lock @@ -146,6 +146,22 @@ } }, "flake-compat_2": { + "flake": false, + "locked": { + "lastModified": 1733328505, + "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_3": { "flake": false, "locked": { "lastModified": 1696426674, @@ -579,16 +595,38 @@ "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable", "nixvim": "nixvim", + "spicetify-nix": "spicetify-nix", "stylix": "stylix" } }, + "spicetify-nix": { + "inputs": { + "flake-compat": "flake-compat_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1736396171, + "narHash": "sha256-1Pr1csD6wVTI2M+Dld77cc+PY83eKoO7ItIrvySWcmU=", + "owner": "Gerg-L", + "repo": "spicetify-nix", + "rev": "511074b9bed99e5cd4ef84999518970fd21af243", + "type": "github" + }, + "original": { + "owner": "Gerg-L", + "repo": "spicetify-nix", + "type": "github" + } + }, "stylix": { "inputs": { "base16": "base16", "base16-fish": "base16-fish", "base16-helix": "base16-helix", "base16-vim": "base16-vim", - "flake-compat": "flake-compat_2", + "flake-compat": "flake-compat_3", "flake-utils": "flake-utils_2", "git-hooks": "git-hooks_2", "gnome-shell": "gnome-shell", diff --git a/flake.nix b/flake.nix index 0f81200..a66b40c 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,10 @@ url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs-unstable"; }; + spicetify-nix = { + url = "github:Gerg-L/spicetify-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; stylix = { url = "github:danth/stylix/release-24.11"; inputs.nixpkgs.follows = "nixpkgs"; @@ -30,6 +34,7 @@ nixpkgs-unstable, home-manager, hyprpanel, + spicetify-nix, stylix, ... }: diff --git a/home-manager/default.nix b/home-manager/default.nix index a40ff73..75d98f9 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -17,6 +17,7 @@ in ./rofi ./wlogout ./hyprland + ./spicetify.nix ]; # Home Manager needs a bit of information about you and the diff --git a/home-manager/spicetify.nix b/home-manager/spicetify.nix new file mode 100644 index 0000000..fbed29e --- /dev/null +++ b/home-manager/spicetify.nix @@ -0,0 +1,34 @@ +{ + pkgs, + inputs, + lib, + ... +}: + +{ + imports = [ inputs.spicetify-nix.homeManagerModules.default ]; + programs.spicetify = + let + spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system}; + theme = import ../theme.nix; + in + { + enable = true; + + enabledExtensions = with spicePkgs.extensions; [ + adblock + hidePodcasts + shuffle # shuffle+ (special characters are sanitized out of extension names) + ]; + enabledCustomApps = with spicePkgs.apps; [ + newReleases + ncsVisualizer + ]; + enabledSnippets = with spicePkgs.snippets; [ + pointer + ]; + + theme = lib.mkForce spicePkgs.themes.catppuccin; + colorScheme = lib.mkForce theme.flavor; + }; +}