Files
nix-config/nix/devshell.nix
Jordan Holt 2a005aade6
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m44s
devshell: add pre-commit hook installer
2025-08-18 19:45:49 +01:00

27 lines
545 B
Nix

{ inputs, ... }:
{
imports = [
inputs.devshell.flakeModule
];
perSystem =
{ config, pkgs, ... }:
{
devshells.default = {
commands = [
{
package = config.treefmt.build.wrapper;
help = "Format all files";
}
{
package = pkgs.deploy-rs;
name = "deploy";
help = "Deploy this nix-config to remote hosts";
}
];
devshell.startup.pre-commit.text = config.pre-commit.installationScript;
};
};
}