From eac628963a2159a163686e385ee58070ce713243 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 9 Mar 2023 09:07:49 +0000 Subject: [PATCH] flake: dev-shell: use exposed pre-commit script --- flake/dev-shells.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake/dev-shells.nix b/flake/dev-shells.nix index 15c1335..daaa0fd 100644 --- a/flake/dev-shells.nix +++ b/flake/dev-shells.nix @@ -1,6 +1,6 @@ { inputs, ... }: { - perSystem = { self', pkgs, ... }: { + perSystem = { self', config, pkgs, ... }: { devShells = { default = pkgs.mkShell { name = "NixOS-config"; @@ -10,7 +10,9 @@ nixpkgs-fmt ]; - inherit (self'.checks.pre-commit) shellHook; + shellHook = '' + ${config.pre-commit.installationScript} + ''; }; }; };