summaryrefslogtreecommitdiff
path: root/parts/checks.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-08 16:24:00 -0700
committerFuwn <[email protected]>2024-10-08 16:24:00 -0700
commit09cb21d49762859966c0b3a814ff205d60fe6a22 (patch)
treecfe2a48c0b5fdc0baf00a986bda2bd59a8dfa1a3 /parts/checks.nix
parentcaddy-tailscale: fix version (diff)
downloadnixos-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.nix13
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;
+ };
+ };
+}