diff --git a/modules/cli/nix/nix.nix b/modules/cli/nix/nix.nix index 133da7d..38aada7 100644 --- a/modules/cli/nix/nix.nix +++ b/modules/cli/nix/nix.nix @@ -1,20 +1,7 @@ -{ - pkgs, - lib, - inputs, - config, - ... -}: { +{pkgs, ...}: { nix = { - # This will add each flake input as a registry - # To make nix3 commands consistent with your flake - registry = lib.mapAttrs (_: value: {flake = value;}) inputs; - - # This will additionally add your inputs to the system's legacy channels - # Making legacy nix commands consistent as well, awesome! - nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry; - optimise.automatic = true; + channel.enable = false; settings = { warn-dirty = false; experimental-features = ["nix-command" "flakes"];