flake/users/guanranwang/home-manager/profiles/media/nixos/spicetify.nix
2023-11-15 20:55:27 +08:00

26 lines
571 B
Nix

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