39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ inputs, self, ... }: {
|
|
flake.homeModules.graphics = { pkgs, config, lib, ... }: {
|
|
options.features.applications.gui.spotify = {
|
|
enable = lib.mkEnableOption "spotify";
|
|
spicetify.enable = lib.mkEnableOption "spicetify";
|
|
};
|
|
|
|
imports = [
|
|
inputs.spicetify.homeManagerModules.default
|
|
];
|
|
|
|
config = {
|
|
home.packages = lib.mkIf (with config.features.applications.gui.spotify; enable && !spicetify.enable) (with pkgs; [
|
|
spotify
|
|
]);
|
|
|
|
programs.spicetify =
|
|
let
|
|
spicePkgs = inputs.spicetify.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
|
in lib.mkIf (with config.features.applications.gui.spotify; enable && spicetify.enable) {
|
|
enable = true;
|
|
enabledExtensions = with spicePkgs.extensions; [
|
|
hidePodcasts
|
|
];
|
|
enabledSnippets = with spicePkgs.snippets; [
|
|
spinningCdCoverArt
|
|
oneko
|
|
hideMiniPlayerButton
|
|
hideFullScreenButton
|
|
declutterNowPlayingBar
|
|
modernScrollbar
|
|
];
|
|
enabledCustomApps = with spicePkgs.apps; [
|
|
# marketplace
|
|
];
|
|
};
|
|
};
|
|
};
|
|
} |