From 739de7a8fa0ca6c990fd9e7608f69c809cd6f352 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 23 Mar 2022 20:45:38 +0100 Subject: ... --- system-profiles/core.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'system-profiles') diff --git a/system-profiles/core.nix b/system-profiles/core.nix index 92e068b4..8c4325e2 100644 --- a/system-profiles/core.nix +++ b/system-profiles/core.nix @@ -53,7 +53,18 @@ in { ''; nixPath = [ "nixpkgs=${flakeInputs.nixpkgs.legacyPackages.${config.nixpkgs.system}.path}" - # "nixpkgs-overlays=${flake.overlays-path.${config.nixpkgs.system}}" + "nixpkgs-overlays=${pkgs.writeText "overlays.nix" '' + attrValues (import + ( + let lock = builtins.fromJSON (builtins.readFile ${toString ../flake.lock}); in + fetchTarball { + url = "https://github.com/edolstra/flake-compat/archive/''${lock.nodes.flake-compat.locked.rev}.tar.gz"; + sha256 = lock.nodes.flake-compat.locked.narHash; + } + ) + { src = ${toString ../.}; } + ).defaultNix.overlays + ''}" ]; registry = let override = { self = "nixos"; }; -- cgit v1.2.3