Setup simple git commit hooks.
This commit is contained in:
parent
294ea37058
commit
bd89cf5733
5 changed files with 88 additions and 2 deletions
11
flake.nix
11
flake.nix
|
@ -40,6 +40,12 @@
|
|||
url = "github:nix-community/nix-index-database";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# Add pre commit hooks
|
||||
pre-commit-hooks = {
|
||||
url = "github:cachix/pre-commit-hooks.nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
|
@ -47,6 +53,7 @@
|
|||
nixpkgs,
|
||||
home-manager,
|
||||
auto-cpufreq,
|
||||
pre-commit-hooks,
|
||||
...
|
||||
} @ inputs: {
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
|
@ -75,5 +82,9 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
devShells.x86_64-linux.default = let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in (import ./shell.nix {inherit pkgs pre-commit-hooks;});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue