2023-11-09 15:43:05 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2023-11-14 03:22:17 +00:00
|
|
|
inputs,
|
2023-11-09 15:43:05 +00:00
|
|
|
...
|
|
|
|
}: let
|
2023-11-14 03:22:17 +00:00
|
|
|
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
|
2023-11-09 15:43:05 +00:00
|
|
|
in {
|
|
|
|
# allow spotify to be installed if you don't have unfree enabled already
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
|
|
builtins.elem (lib.getName pkg) [
|
|
|
|
"spotify"
|
|
|
|
];
|
|
|
|
|
|
|
|
# import the flake's module for your system
|
2023-11-14 03:22:17 +00:00
|
|
|
imports = [inputs.spicetify-nix.homeManagerModule];
|
2023-11-09 15:43:05 +00:00
|
|
|
|
|
|
|
# configure spicetify :)
|
|
|
|
programs.spicetify = {
|
|
|
|
enable = true;
|
|
|
|
enabledExtensions = with spicePkgs.extensions; [
|
|
|
|
adblock
|
|
|
|
keyboardShortcut
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|