rose-pine-nix/modules/home-manager/palette.nix
punkfairie c81ccedd76
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
feat(home): Expose palette for abritrary usages
2025-03-01 11:17:47 -08:00

17 lines
339 B
Nix

{
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;
}