user/catppuccin: add a palette attribute
This commit is contained in:
parent
496274c0a5
commit
4c08dd9171
4 changed files with 31 additions and 8 deletions
|
|
@ -1,9 +1,18 @@
|
|||
{ inputs, ... }: {
|
||||
{ config, inputs, lib, ... }: {
|
||||
imports = [
|
||||
inputs.catppuccin.homeManagerModules.catppuccin
|
||||
];
|
||||
|
||||
catppuccin = {
|
||||
options.catppuccin.colors = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = (builtins.fromJSON (builtins.readFile "${inputs.catppuccin-palette}/palette.json"))."${config.catppuccin.flavor}".colors;
|
||||
};
|
||||
options.catppuccin.hexcolors = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = builtins.mapAttrs (name: value: value.hex) config.catppuccin.colors;
|
||||
};
|
||||
|
||||
config.catppuccin = {
|
||||
accent = "maroon";
|
||||
flavor = "mocha";
|
||||
kitty.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue