spicetify: add testbed (#1625)

Link: https://github.com/nix-community/stylix/pull/1625

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
Flameopathic 2025-07-14 16:41:24 -04:00 committed by GitHub
parent d683e35fa5
commit 7f7472cc90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 57 additions and 0 deletions

24
flake/dev/flake.lock generated
View file

@ -320,9 +320,33 @@
"home-manager": "home-manager",
"nixvim": "nixvim",
"nvf": "nvf",
"spicetify-nix": "spicetify-nix",
"treefmt-nix": "treefmt-nix"
}
},
"spicetify-nix": {
"inputs": {
"nixpkgs": [
"dev-nixpkgs"
],
"systems": [
"dev-systems"
]
},
"locked": {
"lastModified": 1752381641,
"narHash": "sha256-R2iDZb94RosuCeuIukacZVVXxzWYr4jn/QI/ax15nW8=",
"owner": "Gerg-L",
"repo": "spicetify-nix",
"rev": "8f9fd947c52aa6adb6bafe72516eccf186708954",
"type": "github"
},
"original": {
"owner": "Gerg-L",
"repo": "spicetify-nix",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,

View file

@ -161,6 +161,14 @@
};
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs = {
nixpkgs.follows = "dev-nixpkgs";
systems.follows = "dev-systems";
};
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "dev-nixpkgs";

View file

@ -0,0 +1,24 @@
{
lib,
pkgs,
config,
...
}:
{
stylix.testbed = {
# Spotify is not available on arm64.
enable = lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.spotify;
ui.command = {
text = lib.getExe config.programs.spicetify.spicedSpotify;
};
};
programs.spicetify.enable = true;
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"spotify"
];
}

View file

@ -24,6 +24,7 @@ let
# modules for external targets
inputs.nvf.nixosModules.default
inputs.nixvim.nixosModules.nixvim
inputs.spicetify-nix.nixosModules.spicetify
];
};
in