nixos-config/packages/lib/importFlake.nix

11 lines
342 B
Nix

{system}: let
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
flake-compat = fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
};
in
(import flake-compat) {
src = ../.;
inherit system;
}