From 8ea5c0b4699b438a7f61920716408fe473e1672c Mon Sep 17 00:00:00 2001 From: Andre Date: Fri, 30 Aug 2024 14:17:06 -0400 Subject: [PATCH] Nix: simplify registry reference --- modules/system/nix.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/nix.nix b/modules/system/nix.nix index 6c92ffa..d3a1522 100644 --- a/modules/system/nix.nix +++ b/modules/system/nix.nix @@ -59,8 +59,8 @@ in }; # Configure NixOS to use the same software channel as Flakes - registry = lib.mapAttrs (_: value: { flake = value; }) inputs; - nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry; + registry.nixpkgs.flake = inputs.nixpkgs; + nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; # Configure remote build machines # To enable remote builds for a specific host, add `nix.distributedBuilds = true;` to its config