From eab7a2b5adc20a847d38d345b63b8d2356098316 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Tue, 3 Dec 2024 16:23:29 +0100 Subject: [PATCH] Added Nord theme --- modules/users/modules/theming/default.nix | 1 + modules/users/modules/theming/themes/nord.nix | 25 +++++++++++++++++++ users/jan.nix | 13 +++++----- 3 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 modules/users/modules/theming/themes/nord.nix diff --git a/modules/users/modules/theming/default.nix b/modules/users/modules/theming/default.nix index 66638ef..d073be5 100644 --- a/modules/users/modules/theming/default.nix +++ b/modules/users/modules/theming/default.nix @@ -96,6 +96,7 @@ in ./themes/oxocarbon.nix ./themes/papercolor.nix ./themes/sakura.nix + ./themes/nord.nix ]; options.modules.theming.enable = mkEnableOption "theming"; diff --git a/modules/users/modules/theming/themes/nord.nix b/modules/users/modules/theming/themes/nord.nix new file mode 100644 index 0000000..ec46ad0 --- /dev/null +++ b/modules/users/modules/theming/themes/nord.nix @@ -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"; + }; +} diff --git a/users/jan.nix b/users/jan.nix index 52eee1e..2cd7abd 100644 --- a/users/jan.nix +++ b/users/jan.nix @@ -94,11 +94,6 @@ cpp.enable = true; tex.enable = true; jupyter.enable = true; - python.extraPythonPackages = p: [ - p.scikit-learn - p.numpy - p.matplotlib - ]; # Enable unfree unfree.enable = true; @@ -123,10 +118,14 @@ darkMode = false; }; themes.catppuccin = { - enable = true; - flavor = "mocha"; + enable = false; + flavor = "latte"; }; themes.sakura.enable = false; + themes.nord = { + enable = true; + darkMode = true; + }; # TODO: Remove # Nice themes: