flake/users/guanranwang/home-manager/nixos/spicetify.nix

26 lines
564 B
Nix

{
pkgs,
lib,
spicetify-nix,
...
}: let
spicePkgs = spicetify-nix.packages.${pkgs.system}.default;
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
imports = [spicetify-nix.homeManagerModule];
# configure spicetify :)
programs.spicetify = {
enable = true;
enabledExtensions = with spicePkgs.extensions; [
adblock
keyboardShortcut
];
};
}