Added Nord theme

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

View File

@ -96,6 +96,7 @@ in
./themes/oxocarbon.nix ./themes/oxocarbon.nix
./themes/papercolor.nix ./themes/papercolor.nix
./themes/sakura.nix ./themes/sakura.nix
./themes/nord.nix
]; ];
options.modules.theming.enable = mkEnableOption "theming"; options.modules.theming.enable = mkEnableOption "theming";

View File

@ -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";
};
}

View File

@ -94,11 +94,6 @@
cpp.enable = true; cpp.enable = true;
tex.enable = true; tex.enable = true;
jupyter.enable = true; jupyter.enable = true;
python.extraPythonPackages = p: [
p.scikit-learn
p.numpy
p.matplotlib
];
# Enable unfree # Enable unfree
unfree.enable = true; unfree.enable = true;
@ -123,10 +118,14 @@
darkMode = false; darkMode = false;
}; };
themes.catppuccin = { themes.catppuccin = {
enable = true; enable = false;
flavor = "mocha"; flavor = "latte";
}; };
themes.sakura.enable = false; themes.sakura.enable = false;
themes.nord = {
enable = true;
darkMode = true;
};
# TODO: Remove # TODO: Remove
# Nice themes: # Nice themes: