fix: fix eval error on nerdfonts

This commit is contained in:
Julien Malka 2025-01-02 10:03:09 +01:00
parent df4c52c5d0
commit 7c30c450e0
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 59 additions and 56 deletions

View file

@ -26,7 +26,7 @@ with lib;
}; };
font = { font = {
name = "FiraCode Nerd Font Mono Reg"; name = "FiraCode Nerd Font Mono Reg";
package = with pkgs; (nerdfonts.override { fonts = [ "FiraCode" ]; }); package = pkgs.nerd-fonts.fira-code;
}; };
themeFile = "Catppuccin-Mocha"; themeFile = "Catppuccin-Mocha";

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, lib, ... }:
{ {
luj.hmgr.julien = { luj.hmgr.julien = {
@ -60,7 +60,9 @@
]; ];
}; };
home.packages = with pkgs; [ home.packages =
with pkgs;
[
du-dust du-dust
kitty kitty
jq jq
@ -68,7 +70,6 @@
fira-code fira-code
feh feh
meld meld
nerdfonts
jetbrains-mono jetbrains-mono
cantarell-fonts cantarell-fonts
unstable.nixd unstable.nixd
@ -113,7 +114,8 @@
emacs-lsp-booster emacs-lsp-booster
pyright pyright
nixfmt-rfc-style nixfmt-rfc-style
]; ]
++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
@ -150,6 +152,7 @@
".config/dconf" ".config/dconf"
".local/share/keyrings" ".local/share/keyrings"
".cache/mu" ".cache/mu"
"Maildir"
]; ];
allowOther = true; allowOther = true;
}; };