nix-config/flake/dev-shells.nix

20 lines
362 B
Nix
Raw Normal View History

{ inputs, ... }:
2023-03-07 11:51:26 +01:00
{
perSystem = { self', config, pkgs, ... }: {
devShells = {
default = pkgs.mkShell {
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
};
}