refactoring to more granular flakes and modules
This commit is contained in:
parent
6570da6f33
commit
50825c9b84
52 changed files with 2501 additions and 9 deletions
33
flakes/common/nix_modules/jetbrains_font.nix
Normal file
33
flakes/common/nix_modules/jetbrains_font.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
hasNewJetbrainsMono =
|
||||
if builtins.hasAttr "nerd-fonts" pkgs then
|
||||
builtins.hasAttr "jetbrains-mono" pkgs."nerd-fonts"
|
||||
else
|
||||
false;
|
||||
|
||||
jetbrainsMonoFont =
|
||||
if hasNewJetbrainsMono then
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
else
|
||||
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; });
|
||||
in
|
||||
{
|
||||
config = {
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
fonts.packages = [
|
||||
jetbrainsMonoFont
|
||||
]
|
||||
# TODO verify if these are needed/working
|
||||
# ++ (with pkgs; [
|
||||
# ipafont
|
||||
# kochi-substitute
|
||||
# noto-fonts-cjk-sans # Or another CJK font
|
||||
# ])
|
||||
;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue