From 43802d906e017cfcc4ee7fa5199e2c75968eee81 Mon Sep 17 00:00:00 2001 From: Gabriel Soldani Date: Mon, 28 Sep 2026 22:19:08 -0300 Subject: [PATCH] fix: parametrize `system` in flake --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 2c9df0e..6b19890 100644 --- a/flake.nix +++ b/flake.nix @@ -11,16 +11,16 @@ withHooks = import ./with-hooks.nix {inherit nixpkgs;}; in withHooks { - hooks = forAllSystems (_: pkgs: + hooks = forAllSystems (system: pkgs: { - inherit (self.lib.x86_64-linux.presets) commitlint; + inherit (self.lib.${system}.presets) commitlint; settings = { parallel = true; tangled.enable = true; }; } // pkgs.lib.mapAttrs (_: h: h {stages = ["pre-push"];}) { - inherit (self.lib.x86_64-linux.presets) shellcheck alejandra bats shfmt deadnix statix; + inherit (self.lib.${system}.presets) shellcheck alejandra bats shfmt deadnix statix; }); devShells = forAllSystems (_: pkgs: { -- 2.51.2