Sorry, but I’m not very good at nix so I couldn’t figure this out on my own.
I am encountering ‘infinite recursion’ whenever i use lib.lists.optionals in a default.nix.
It is fixed when I comment out the lines in which I use lib.lists.optionals.
Commenting out the contents of the files that are called doesn’t fix it either.
Commenting out one lib.lists.optionals or the other doesn’t help either.
default.nix:
{
lib,
config,
...
}: {
imports = [
./pkgsMain.nix
./pkgsOptions.nix
]
++ lib.lists.optionals config.fontPackages.enable [ ./fonts.nix ]
++ lib.lists.optionals config.autoUpgrade.enable [ ./autoUpgrade.nix ];
}
fonts.nix:
{
config,
pkgs,
...
}: {
fonts.packages = (with pkgs; [
nerdfonts
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
fira-code
fira-code-symbols
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
aileron
]) ++ config.fontPackages.extraFonts;
}
autoUpgrade.nix:
{
config,
...
}: {
system.autoUpgrade = {
enable = true;
flake = config.flakePath;
flags = [
"--update-input"
"nixpkgs"
"-L"
];
dates = "daily";
operation = "boot";
};
}