Setup simple git commit hooks.

This commit is contained in:
CronyAkatsuki 2025-02-23 17:40:10 +01:00
parent 294ea37058
commit bd89cf5733
5 changed files with 88 additions and 2 deletions

View file

@ -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;});
};
}