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;
|
||||
|
|
|
|||
|
|
@ -9,12 +9,8 @@
|
|||
settings = {
|
||||
font_features = "-ss01 +ss19";
|
||||
enable_audio_bell = false;
|
||||
color5 = "#cba6f7";
|
||||
color13 = "#cba6f7";
|
||||
color5 = config.catppuccin.hexcolors.mauve;
|
||||
color13 = config.catppuccin.hexcolors.mauve;
|
||||
};
|
||||
# extraConfig = builtins.readFile (builtins.fetchurl {
|
||||
# url = "https://raw.githubusercontent.com/folke/tokyonight.nvim/eede574f9ef57137e6d7e4bab37b09db636c5a56/extras/kitty_tokyonight_night.conf";
|
||||
# sha256 = "0l9yl3qmgf7b10x7hy7q5hma0hsyamq3n14lfbw31cimm6snwim6";
|
||||
# });
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue