From 7d45992c079fbbcca0ef6c01afdcdbda9dd9e7e9 Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Sun, 1 Jun 2025 13:01:30 +0200 Subject: [PATCH] system: nixpkgs: update --- modules/system/nix/nixpkgs.nix | 35 +++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/modules/system/nix/nixpkgs.nix b/modules/system/nix/nixpkgs.nix index f240b96..847546a 100644 --- a/modules/system/nix/nixpkgs.nix +++ b/modules/system/nix/nixpkgs.nix @@ -1,34 +1,39 @@ # taken from raf { - # Global nixpkgs configuration. This is ignored if nixpkgs.pkgs is set - # which is a case that should be avoided. Everything that is set to configure - # nixpkgs must go here. + # Global nixpkgs configuration. + # This is ignored if nixpkgs.pkgs is set, which should be avoided. nixpkgs = { # Configuration reference: # config = { - # Disallow broken packages to be built. allowBroken = false; + # Disallow broken packages to be built. + allowBroken = false; + allowUnsupportedSystem = true; + # Warn when config contains an unrecognized attribute. + # This might be useful for getting a better configuration. + warnUndeclaredOptions = true; + # Allow unfree packages allowUnfree = true; - # Default to none, add more as necessary. This is usually where - # electron packages go when they reach EOL. - permittedInsecurePackages = ["olm-3.2.16"]; + # 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 = []; - # Nixpkgs sets internal package aliases to ease migration from other - # distributions easier, or for convenience's sake. Even though the manual - # and the description for this option recommends this to be true, I prefer - # explicit naming conventions, i.e., no aliases. + # Whether to set enableParallelBuilding to true by default while + # building nixpkgs packages. Changing the default causes a mass rebuild. + enableParallelBuildingByDefault = false; + + # Whether to expose old attribute names for compatibility. + # This improves backwards compatibility, + # which I could not care less about in my configuration. allowAliases = false; # List of derivation warnings to display while rebuilding. # See: - # NOTE: "maintainerless" can be added to emit warnings - # about packages without maintainers but it seems to me - # like there are more packages without maintainers than - # with maintainers, so it's disabled for the time being. showDerivationWarnings = []; }; };