dotfiles/user-modules/theming/themes/nord.nix

26 lines
425 B
Nix
Raw Permalink Normal View History

2024-12-03 15:23:29 +00:00
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.theming.themes.nord;
mode = if cfg.darkMode then "" else "-light";
in
{
options = {
theming.themes.nord = {
enable = mkEnableOption "nord";
darkMode = mkEnableOption "dark mode";
};
};
config.theming = mkIf cfg.enable {
darkMode = cfg.darkMode;
colorScheme = "${pkgs.base16-schemes}/share/themes/nord${mode}.yaml";
};
}