20 lines
362 B
Nix
20 lines
362 B
Nix
{ inputs, ... }:
|
|
{
|
|
perSystem = { self', config, pkgs, ... }: {
|
|
devShells = {
|
|
default = pkgs.mkShell {
|
|
name = "NixOS-config";
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
gitAndTools.pre-commit
|
|
nixpkgs-fmt
|
|
];
|
|
|
|
shellHook = ''
|
|
${config.pre-commit.installationScript}
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|