Added Nord theme

This commit is contained in:
Jan-Bulthuis committed 2024-12-03 16:23:29 +01:00
1 parent 03be992cb8
commit eab7a2b5ad
3 files changed
+32 -7

No files matched your search

@@ -96,6 +96,7 @@ in
./themes/oxocarbon.nix
./themes/papercolor.nix
./themes/sakura.nix
./themes/nord.nix
];
options.modules.theming.enable = mkEnableOption "theming";
@@ -0,0 +1,25 @@
{
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";
};
}