2023-03-08 19:01:37 +01:00
|
|
|
{ inputs, ... }:
|
2023-03-07 11:51:26 +01:00
|
|
|
{
|
2023-03-09 10:07:49 +01:00
|
|
|
perSystem = { self', config, pkgs, ... }: {
|
2023-03-08 19:01:37 +01:00
|
|
|
devShells = {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
name = "NixOS-config";
|
2023-03-07 11:51:26 +01:00
|
|
|
|
2023-03-08 19:01:37 +01:00
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
gitAndTools.pre-commit
|
|
|
|
nixpkgs-fmt
|
|
|
|
];
|
2023-03-07 11:51:26 +01:00
|
|
|
|
2023-03-09 10:07:49 +01:00
|
|
|
shellHook = ''
|
|
|
|
${config.pre-commit.installationScript}
|
|
|
|
'';
|
2023-03-08 19:01:37 +01:00
|
|
|
};
|
|
|
|
};
|
2023-03-07 11:51:26 +01:00
|
|
|
};
|
|
|
|
}
|