diff options
| author | Fuwn <[email protected]> | 2024-10-08 16:24:00 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-08 16:24:00 -0700 |
| commit | 09cb21d49762859966c0b3a814ff205d60fe6a22 (patch) | |
| tree | cfe2a48c0b5fdc0baf00a986bda2bd59a8dfa1a3 /parts/checks.nix | |
| parent | caddy-tailscale: fix version (diff) | |
| download | nixos-config-09cb21d49762859966c0b3a814ff205d60fe6a22.tar.xz nixos-config-09cb21d49762859966c0b3a814ff205d60fe6a22.zip | |
flake: move perSystem attributes to parts
Diffstat (limited to 'parts/checks.nix')
| -rw-r--r-- | parts/checks.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/parts/checks.nix b/parts/checks.nix new file mode 100644 index 0000000..7f95733 --- /dev/null +++ b/parts/checks.nix @@ -0,0 +1,13 @@ +{ pre-commit-hooks, system, ... }: +{ + checks.pre-commit-check = pre-commit-hooks.lib.${system}.run { + src = ./.; + + hooks = { + deadnix.enable = true; + flake-checker.enable = true; + nixfmt-rfc-style.enable = true; + statix.enable = true; + }; + }; +} |