inputs: { config, lib, ... }: { nix = { gc = { automatic = true; dates = "03:15"; options = "--delete-older-than 15d"; }; settings = { auto-optimise-store = true; extra-experimental-features = ["nix-command" "flakes"]; }; registry = lib.mapAttrs (_name: value: {flake = value;}) inputs; nixPath = lib.mapAttrsToList (name: _value: "${name}=flake:${name}") (lib.filterAttrs (name: value: name != "self" && value.flake != null) config.nix.registry); }; }