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
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:
parent
e0588a998e
commit
c81ccedd76
2 changed files with 18 additions and 0 deletions
|
@ -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
|
||||||
|
|
17
modules/home-manager/palette.nix
Normal file
17
modules/home-manager/palette.nix
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue