feat(home): Expose palette for abritrary usages
Some checks failed
Release / Make release (push) Has been cancelled
CI / Format Nix files (push) Has been cancelled
CI / Test Modules (push) Has been cancelled
CI / Validate sources (push) Has been cancelled
Build & deploy website / Build site (push) Has been cancelled
Release / Publish to Flake registries (push) Has been cancelled
Build & deploy website / Deploy website (push) Has been cancelled

This commit is contained in:
punkfairie 2025-03-01 11:17:47 -08:00
parent e0588a998e
commit c81ccedd76
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
2 changed files with 18 additions and 0 deletions

View file

@ -17,6 +17,7 @@
./kitty.nix ./kitty.nix
./mako.nix ./mako.nix
./neovim.nix ./neovim.nix
./palette.nix
./polybar.nix ./polybar.nix
./rio.nix ./rio.nix
./rofi.nix ./rofi.nix

View file

@ -0,0 +1,17 @@
{
config,
lib,
...
}: let
inherit (config.rose-pine) sources;
cfg = config.rose-pine;
palette = (lib.importJSON "${sources.rose-pine-palette}/palette.json").${cfg.flavor}.colors;
in {
options.rose-pine.palette = lib.mkOption {
type = lib.types.attrs;
default = palette;
};
config.rose-pine.palette = palette;
}