From af6b8a9b7512b7671f8984037e5724a2d0dd47b2 Mon Sep 17 00:00:00 2001 From: Aldo <82811+aldoborrero@users.noreply.github.com> Date: Wed, 8 Feb 2023 08:49:15 +0000 Subject: [PATCH] fix: move pkgs and lib to imports (#96) --- flake.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 9ef961cf..c48b545d 100644 --- a/flake.nix +++ b/flake.nix @@ -58,17 +58,17 @@ } { imports = [ + ({inputs', ...}: { + # make pkgs available to all `perSystem` functions + _module.args.pkgs = inputs'.nixpkgs.legacyPackages; + # make custom lib available to all `perSystem` functions + _module.args.lib = lib; + }) ./nix ./packages ./modules ]; systems = ["x86_64-linux"]; - perSystem = {inputs', ...}: { - # make pkgs available to all `perSystem` functions - _module.args.pkgs = inputs'.nixpkgs.legacyPackages; - # make custom lib available to all `perSystem` functions - _module.args.lib = lib; - }; }) .config .flake;