Skip to content

Commit d6b63df

Browse files
committed
fix(theme): prevent base module from forcing catppuccin package
The base theme module was hardcoded to default cfg.package to pkgs.catppuccin, which caused other themes like Tokyonight to unintentionally build the full Catppuccin package. Moved the package definition to the catppuccin module and set the base default to emptyDirectory.
1 parent f92d41f commit d6b63df

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

modules/nixos/theme/catppuccin/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ in
8484

8585
(mkIf cfg.enable {
8686
khanelinix.theme.enable = true;
87+
khanelinix.theme.package = cfg.package;
8788

8889
assertions = [
8990
{

modules/nixos/theme/default.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,8 @@ in
9292

9393
package = mkOption {
9494
type = types.package;
95-
default = pkgs.catppuccin.override { inherit (cfg.selectedTheme) accent variant; };
96-
description = ''
97-
The `spotifyd` package to use.
98-
Can be used to specify extensions.
99-
'';
95+
default = pkgs.emptyDirectory;
96+
description = "The primary theme package to install system-wide.";
10097
};
10198
};
10299

0 commit comments

Comments
 (0)