about summary refs log tree commit diff
path: root/users/tazjin/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/default.nix')
-rw-r--r--users/tazjin/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/users/tazjin/default.nix b/users/tazjin/default.nix
new file mode 100644
index 000000000000..8359b2de3275
--- /dev/null
+++ b/users/tazjin/default.nix
@@ -0,0 +1,19 @@
+# //users/tazjin-specific CI configuration.
+{ pkgs, ... }:
+
+let
+  rustfmt = pkgs.writeShellScript "rustfmt-tazjin" ''
+    ${pkgs.fd}/bin/fd -e rs | \
+      ${pkgs.ripgrep}/bin/rg 'users/tazjin' | \
+      xargs ${pkgs.rustfmt}/bin/rustfmt --check --config-path users/tazjin
+  '';
+
+in
+rustfmt.overrideAttrs (_: {
+  # rustfmt not respecting config atm, disable
+  meta.ci.skip = true;
+
+  meta.ci.extraSteps.rustfmt = {
+    command = rustfmt;
+  };
+})