bunch of sliming down

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-18 18:01:46 -05:00
parent aacf05e59d
commit 8b2a1b1f4f
21 changed files with 992 additions and 810 deletions

View file

@ -1,5 +1,7 @@
{
pkgs,
lib,
config,
...
}:
let
@ -14,9 +16,27 @@ let
pkgs.nerd-fonts.jetbrains-mono
else
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; });
ccfg = import ../config.nix;
cfg_path = [
ccfg.custom_config_key
"general"
];
cfg = lib.attrsets.getAttrFromPath cfg_path config;
in
{
config = {
options =
{ }
// lib.attrsets.setAttrByPath cfg_path {
jetbrainsMonoFont = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable jetbrains mono font";
};
};
config = lib.mkIf cfg.jetbrainsMonoFont {
fonts.packages = [ jetbrainsMonoFont ];
};
}