diff --git a/modules/home-manager/all-modules.nix b/modules/home-manager/all-modules.nix index ce91c0c..cd4fca9 100644 --- a/modules/home-manager/all-modules.nix +++ b/modules/home-manager/all-modules.nix @@ -17,6 +17,7 @@ ./kitty.nix ./mako.nix ./neovim.nix + ./palette.nix ./polybar.nix ./rio.nix ./rofi.nix diff --git a/modules/home-manager/palette.nix b/modules/home-manager/palette.nix new file mode 100644 index 0000000..6dce6fc --- /dev/null +++ b/modules/home-manager/palette.nix @@ -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; +}