diff --git a/.woodpecker/checks.yml b/.woodpecker/checks.yml
index 04fffac..0f37fbf 100644
--- a/.woodpecker/checks.yml
+++ b/.woodpecker/checks.yml
@@ -1,11 +1,19 @@
+variables:
+  - &when_path
+    - "*.nix"
+
 pipeline:
   check:
     image: nixos/nix
     commands:      
       - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
       - nix flake check
+    when:
+      path: *when_path
   fmt:
     image: nixos/nix
     commands:
       - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
       - nix run nixpkgs#alejandra -- -c .
+    when:
+      path: *when_path