From 4516685bb919423133a4cbeed9e7691024ea7065 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 23 Aug 2024 23:14:53 -0700 Subject: [PATCH] feat: add spicetify --- flake.lock | 38 +++++++++++++++++++ flake.nix | 14 +++---- hosts/demeter/default.nix | 1 + .../youwen/linux/packages/x86_64/default.nix | 1 - users/youwen/linux/spicetify/default.nix | 20 ++++++++++ 5 files changed, 64 insertions(+), 10 deletions(-) create mode 100644 users/youwen/linux/spicetify/default.nix diff --git a/flake.lock b/flake.lock index 097a0ba..a613f6e 100755 --- a/flake.lock +++ b/flake.lock @@ -157,6 +157,22 @@ "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" } }, + "flake-compat_4": { + "flake": false, + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-parts": { "inputs": { "nixpkgs-lib": [ @@ -727,6 +743,7 @@ "nix-homebrew": "nix-homebrew", "nixpkgs": "nixpkgs_3", "nixvim": "nixvim", + "spicetify": "spicetify", "stablepkgs": "stablepkgs" } }, @@ -771,6 +788,27 @@ "type": "github" } }, + "spicetify": { + "inputs": { + "flake-compat": "flake-compat_4", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1724472954, + "narHash": "sha256-65NfzEvwdJGHsOZA+w4AUFUG10RyfuQltct3h++gsw0=", + "owner": "Gerg-L", + "repo": "spicetify-nix", + "rev": "3caf2a241f7af52419ce97c6682b0467219ab914", + "type": "github" + }, + "original": { + "owner": "Gerg-L", + "repo": "spicetify-nix", + "type": "github" + } + }, "stablepkgs": { "locked": { "lastModified": 1724098845, diff --git a/flake.nix b/flake.nix index ec33f20..7d92eaa 100755 --- a/flake.nix +++ b/flake.nix @@ -53,20 +53,16 @@ url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs"; }; + + spicetify = { + url = "github:Gerg-L/spicetify-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { - self, nixpkgs, - home-manager, - catppuccin, - lanzaboote, - stablepkgs, - bleedingpkgs, - lix-module, nix-darwin, - nix-homebrew, - apple-silicon, ... } @ inputs: let in { diff --git a/hosts/demeter/default.nix b/hosts/demeter/default.nix index 0c781a6..6fda174 100644 --- a/hosts/demeter/default.nix +++ b/hosts/demeter/default.nix @@ -34,6 +34,7 @@ ../../users/youwen/common/neofetch ../../users/youwen/common/neovim ../../users/youwen/common + ../../users/youwen/linux/spicetify ./home-manager-extras catppuccin.homeManagerModules.catppuccin nixvim.homeManagerModules.nixvim diff --git a/users/youwen/linux/packages/x86_64/default.nix b/users/youwen/linux/packages/x86_64/default.nix index b8d166a..9f62ba8 100644 --- a/users/youwen/linux/packages/x86_64/default.nix +++ b/users/youwen/linux/packages/x86_64/default.nix @@ -4,7 +4,6 @@ in { home.packages = (createCommon pkgs) ++ (with pkgs; [ - spotify bitwarden-desktop modrinth-app lutris diff --git a/users/youwen/linux/spicetify/default.nix b/users/youwen/linux/spicetify/default.nix new file mode 100644 index 0000000..2336e7b --- /dev/null +++ b/users/youwen/linux/spicetify/default.nix @@ -0,0 +1,20 @@ +{ + inputs, + pkgs, + ... +}: let + spicepkgs = inputs.spicetify.legacyPackages.${pkgs.system}; +in { + imports = [ + inputs.spicetify.homeManagerModules.default + ]; + + programs.spicetify = { + enable = true; + theme = spicepkgs.themes.catppuccin; + colorScheme = "mocha"; + enabledExtensions = with spicepkgs.extensions; [ + lastfm + ]; + }; +}