.files/nix/homeModules/common/user-nixconf.nix
Léana 江 ebf8468807
tree-wide: format with nixfmt
Another saturday another useless formatter change.
It's my dotfiles, after all

alejandra doesn't handle c-style inline comments well.
2025-11-08 10:15:58 +08:00

35 lines
892 B
Nix

{
nixosConfig ? null,
lib,
pkgs,
...
}:
{
nix = {
package = lib.mkDefault (nixosConfig.nix.package or pkgs.nix);
settings = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://leana8959.cachix.org"
];
extra-trusted-substituters = [
"https://nix-community.cachix.org"
"https://leana8959.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"leana8959.cachix.org-1:CxQSAp8lcgMv8Me459of0jdXRW2tcyeYRKTiiUq8z0M="
];
experimental-features = [
"nix-command"
"flakes"
];
allow-import-from-derivation = true;
keep-outputs = false; # Build time derivations and sources
http-connections = 50; # default: 25
max-substitution-jobs = 32; # default: 16
};
};
}