1
0
Fork 0

Nix: simplify registry reference

This commit is contained in:
Aires 2024-08-30 14:17:06 -04:00
parent c77f1c99d1
commit 8ea5c0b469

View file

@ -59,8 +59,8 @@ in
}; };
# Configure NixOS to use the same software channel as Flakes # Configure NixOS to use the same software channel as Flakes
registry = lib.mapAttrs (_: value: { flake = value; }) inputs; registry.nixpkgs.flake = inputs.nixpkgs;
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry; nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
# Configure remote build machines # Configure remote build machines
# To enable remote builds for a specific host, add `nix.distributedBuilds = true;` to its config # To enable remote builds for a specific host, add `nix.distributedBuilds = true;` to its config