nichts/modules/system/nix/nixpkgs.mod.nix

47 lines
1.5 KiB
Nix
Raw Normal View History

2024-08-08 19:21:52 +02:00
# taken from raf
{sources, ...}: {
2025-06-01 13:01:30 +02:00
# Global nixpkgs configuration.
# This is ignored if nixpkgs.pkgs is set, which should be avoided.
2024-07-23 00:00:26 +02:00
nixpkgs = {
flake = {
source = sources.nixpkgs;
setFlakeRegistry = true;
setNixPath = true;
};
2024-07-23 00:00:26 +02:00
# Configuration reference:
# <https://nixos.org/manual/nixpkgs/unstable/#chap-packageconfig>
2024-07-24 17:47:16 +02:00
config = {
2025-06-01 13:01:30 +02:00
# Disallow broken packages to be built.
allowBroken = false;
2024-07-24 17:47:16 +02:00
allowUnsupportedSystem = true;
2025-06-01 13:01:30 +02:00
# Warn when config contains an unrecognized attribute.
# This might be useful for getting a better configuration.
warnUndeclaredOptions = true;
2024-08-16 16:34:09 +02:00
# Allow unfree packages
2024-07-24 17:47:16 +02:00
allowUnfree = true;
2025-06-01 13:01:30 +02:00
# Permitted insecure packages in a system.
# Default to none, add more as necessary.
# Matrix also likes using deprecated libraries, which tend to go into this list.
# permittedInsecurePackages = [];
# Whether to set enableParallelBuilding to true by default while
# building nixpkgs packages. Changing the default causes a mass rebuild.
enableParallelBuildingByDefault = false;
2024-07-24 17:47:16 +02:00
2025-06-01 13:01:30 +02:00
# Whether to expose old attribute names for compatibility.
# This improves backwards compatibility,
# which I could not care less about in my configuration.
2024-08-03 18:10:09 +02:00
allowAliases = false;
2024-07-24 17:47:16 +02:00
# List of derivation warnings to display while rebuilding.
# See: <https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/check-meta.nix>
showDerivationWarnings = [];
};
2024-07-23 00:00:26 +02:00
};
}