X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=flakes%2Flib%2Fflake.nix;h=ab1a6aa881eb8f387eda2044692f7a5c1bea51e0;hb=776aa3603903616702b8bc1d9e955d3a6da9ee1e;hpb=c7b16397101fd534c41ede5ae7c55e7e120c06f7;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/flakes/lib/flake.nix b/flakes/lib/flake.nix index a352c4c..ab1a6aa 100644 --- a/flakes/lib/flake.nix +++ b/flakes/lib/flake.nix @@ -4,13 +4,6 @@ description = "Useful libs"; outputs = { self, nixpkgs }: { lib = rec { - withNarKeyCompat = flakeCompat: path: moduleAttrs: - let module = (flakeCompat path).${moduleAttrs}; - key = builtins.hashString "sha256" (builtins.path { inherit path; name = "source"; }); - in if builtins.isFunction module - then args@{ config, lib, pkgs, ... }: (module args // { inherit key; }) - else module // { inherit key; }; - withNarKey = dep: moduleAttrs: let module = dep.${moduleAttrs}; key = builtins.hashString "sha256" (builtins.path { path = dep.sourceInfo.outPath; name = "source"; });