diff --git a/system/nix/default.nix b/system/nix/default.nix index 6cf6ac63..ecf28e13 100644 --- a/system/nix/default.nix +++ b/system/nix/default.nix @@ -14,11 +14,13 @@ # we need git for flakes environment.systemPackages = [pkgs.git]; - nix = { + nix = let + flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs; + in { package = pkgs.lix; # pin the registry to avoid downloading and evaling a new nixpkgs version every time - registry = lib.mapAttrs (_: v: {flake = v;}) inputs; + registry = lib.mapAttrs (_: v: {flake = v;}) flakeInputs; # set the path for channels compat nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;