{ lib, namespace, ... }: let nixSettings = lib.${namespace}.nixSettings; in { nix = { settings = nixSettings.commonSettings // { substituters = nixSettings.commonSubstituters; trusted-public-keys = nixSettings.commonTrustedPublicKeys; }; gc = nixSettings.commonGc; optimise.automatic = lib.mkDefault true; }; nixpkgs = { config = { # CUDA and ROCm are not applicable on Darwin; those hardware modules are # NixOS-only. Unfree allowance is handled globally via channels-config in # the flake. allowUnsupportedSystem = true; }; }; }