aboutsummaryrefslogblamecommitdiffstats
path: root/nixos/nix.nix
blob: a2ec6b001dbf5766451699eeaef80dc3d4f29fa3 (plain) (tree)





















                                                                                             
{
  inputs,
  lib,
  config,
  ...
}: {
  nix = {
    settings = {
      experimental-features = "nix-command flakes";
      auto-optimise-store = true;
      allowed-users = ["@wheel"];
    };
    # gc = {
    #   automatic = true;
    #   dates = "weekly";
    #   options = "--delete-older-than +3";
    # };

    registry = lib.mapAttrs (_: value: {flake = value;}) inputs;
    nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
  };
}