Skip to content

Commit

Permalink
spicetify: add module
Browse files Browse the repository at this point in the history
  • Loading branch information
brckd committed Sep 24, 2024
1 parent e72f227 commit 6bc7e24
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions configs/home/bricked/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
# Apps
programs.librewolf.enable = true;
programs.vesktop.enable = true;
programs.spicetify.enable = true;
programs.heroic = {
enable = false;
settings = {
Expand Down
38 changes: 38 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@
inputs.git-hooks.follows = "git-hooks";
};

spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};

getchoo = {
url = "github:getchoo/nix-exprs";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
3 changes: 3 additions & 0 deletions modules/home/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
nur,
stylix,
spicetify-nix,
...
}: {
home.stateVersion = "24.05";
Expand All @@ -9,6 +10,7 @@
imports = [
nur.hmModules.nur
stylix.homeManagerModules.stylix
spicetify-nix.homeManagerModules.default
./dconf
./stylix
./zsh
Expand All @@ -19,6 +21,7 @@
./librewolf
./cava
./vesktop
./spicetify
./heroic
];
}
25 changes: 25 additions & 0 deletions modules/home/spicetify/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
config,
lib,
pkgs,
spicetify-nix,
...
}:
with lib; let
cfg = config.programs.spicetify;
spicePkgs = spicetify-nix.legacyPackages.${pkgs.system};
in {
config = mkIf cfg.enable {
programs.spicetify = {
enabledExtensions = with spicePkgs.extensions; [
adblock
hidePodcasts
];
enabledCustomApps = with spicePkgs.apps; [
ncsVisualizer
];
theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha";
};
};
}

0 comments on commit 6bc7e24

Please sign in to comment.