nix-config/flake/dev-shells.nix

20 lines
351 B
Nix
Raw Normal View History

{ ... }:
2023-03-07 11:51:26 +01:00
{
perSystem = { config, pkgs, ... }: {
devShells = {
default = pkgs.mkShellNoCC {
name = "NixOS-config";
2023-03-07 11:51:26 +01:00
nativeBuildInputs = with pkgs; [
gitAndTools.pre-commit
nixpkgs-fmt
];
2023-03-07 11:51:26 +01:00
shellHook = ''
${config.pre-commit.installationScript}
'';
};
};
2023-03-07 11:51:26 +01:00
};
}