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
17 lines
339 B
Nix
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;
|
|
}
|