From 1cabb64b8afed3b350b44f2952a3c48d2fa7e395 Mon Sep 17 00:00:00 2001 From: randogoth Date: Thu, 5 Feb 2026 09:44:26 +0200 Subject: [PATCH] fix(just): set JUSTFILE to global justfile --- modules/system/justfile.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/system/justfile.nix b/modules/system/justfile.nix index 57b2bcb..7f72cf4 100644 --- a/modules/system/justfile.nix +++ b/modules/system/justfile.nix @@ -58,4 +58,7 @@ in { # Global Just recipes (system-wide). Used when `XDG_CONFIG_DIRS` includes `/etc/xdg` (default). environment.etc."xdg/just/justfile".text = justfileText; + + # Make `just` pick up the global justfile by default (otherwise it only searches CWD/parents). + environment.sessionVariables.JUSTFILE = "/etc/xdg/just/justfile"; }