From 4f1f1dfa77acac296787b0701b780e799de814ca Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Tue, 13 Feb 2024 20:56:08 +0100 Subject: [PATCH] added spicetify --- flake.lock | 61 +++++++++++++++++++++++++++++++++++-- flake.nix | 13 +++++++- systems/common/default.nix | 1 + systems/common/packages.nix | 1 - systems/common/spiceify.nix | 26 ++++++++++++++++ 5 files changed, 97 insertions(+), 5 deletions(-) create mode 100644 systems/common/spiceify.nix diff --git a/flake.lock b/flake.lock index 23bf182..035c93f 100644 --- a/flake.lock +++ b/flake.lock @@ -83,6 +83,24 @@ "inputs": { "systems": "systems" }, + "locked": { + "lastModified": 1685518550, + "narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_3": { + "inputs": { + "systems": "systems_2" + }, "locked": { "lastModified": 1681202837, "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", @@ -97,7 +115,7 @@ "type": "github" } }, - "flake-utils_3": { + "flake-utils_4": { "locked": { "lastModified": 1667395993, "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", @@ -294,6 +312,7 @@ "nixpkgs": "nixpkgs", "nur": "nur", "scanned-image-extractor": "scanned-image-extractor", + "spicetify": "spicetify", "starc": "starc", "vscode-extensions": "vscode-extensions", "wallpaper": "wallpaper" @@ -320,6 +339,27 @@ "url": "https://git.krsnik.at/Kristian/scanned-image-extractor.git" } }, + "spicetify": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1704167711, + "narHash": "sha256-kFDq+kf/Di/P8bq5sUP8pVwRkrSVrABksBjMPmLic3s=", + "owner": "the-argus", + "repo": "spicetify-nix", + "rev": "1325416f951d6a82cfddb1289864ad782e2b87c4", + "type": "github" + }, + "original": { + "owner": "the-argus", + "repo": "spicetify-nix", + "type": "github" + } + }, "squashfuse": { "flake": false, "locked": { @@ -371,10 +411,25 @@ "type": "github" } }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "vscode-extensions": { "inputs": { "flake-compat": "flake-compat_2", - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils_3", "nixpkgs": [ "nixpkgs" ] @@ -395,7 +450,7 @@ }, "wallpaper": { "inputs": { - "flake-utils": "flake-utils_3", + "flake-utils": "flake-utils_4", "nixpkgs": [ "nixpkgs" ], diff --git a/flake.nix b/flake.nix index de7e836..98f9f9d 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + spicetify = { + url = "github:the-argus/spicetify-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + starc = { url = "git+https://git.krsnik.at/Kristian/starc-flake.git"; inputs.nixpkgs.follows = "nixpkgs"; @@ -51,6 +56,7 @@ wallpaper, nix-index-database, vscode-extensions, + spicetify, starc, scanned-image-extractor, }: let @@ -63,9 +69,14 @@ commonModules = [ ./systems/common { - _module.args.wallpaper = wallpaper.packages.${system}.default; + _module.args = { + inherit spicetify; + wallpaper = wallpaper.packages.${system}.default; + }; } + spicetify.homeManagerModule + nur.nixosModules.nur nix-index-database.hmModules.nix-index diff --git a/systems/common/default.nix b/systems/common/default.nix index f107219..4167555 100644 --- a/systems/common/default.nix +++ b/systems/common/default.nix @@ -30,6 +30,7 @@ ./thunderbird.nix ./vscode.nix ./mpv.nix + ./spiceify.nix ]; # Programs diff --git a/systems/common/packages.nix b/systems/common/packages.nix index b14064c..f6f1a54 100644 --- a/systems/common/packages.nix +++ b/systems/common/packages.nix @@ -89,7 +89,6 @@ mullvad-vpn # Entertainment - spotify hypnotix # VPN client for university diff --git a/systems/common/spiceify.nix b/systems/common/spiceify.nix new file mode 100644 index 0000000..7347314 --- /dev/null +++ b/systems/common/spiceify.nix @@ -0,0 +1,26 @@ +{ + pkgs, + spicetify, + ... +}: let + spicePkgs = spicetify.packages.${pkgs.system}.default; +in { + programs.spicetify = { + enable = true; + + theme = spicePkgs.themes.catppuccin; + colorScheme = "frappe"; + + enabledExtensions = with spicePkgs.extensions; [ + fullAppDisplay + shuffle # shuffle+ (special characters are sanitized out of ext names) + hidePodcasts + groupSession + playlistIntersection + skipStats + phraseToPlaylist + wikify + songStats + ]; + }; +}