26 lines
425 B
Nix
26 lines
425 B
Nix
{
|
|
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";
|
|
};
|
|
}
|