rose-pine-nix/modules/home-manager/palette.nix

18 lines
339 B
Nix
Raw Normal View History

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