summaryrefslogtreecommitdiff
path: root/hm/soft/spicetify.nix
blob: 96c4d0dc725de860f0c868bc7301aaa5fe133aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ inputs, pkgs, config, lib, ... }:
let
  cfg = config.szpont.hm.soft.spicetify;
  spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
  imports = [ inputs.spicetify-nix.homeManagerModules.default ];

  options.szpont.hm.soft.spicetify.enable = lib.mkEnableOption "spicetify config";

  config = lib.mkIf cfg.enable {
    programs.spicetify = {
      enable = true;

      enabledExtensions = with spicePkgs.extensions; [
        adblockify
        hidePodcasts
      ];

      theme = spicePkgs.themes.catppuccin;
      colorScheme = "mocha";
    };
  };
}