fixed global justfile
This commit is contained in:
parent
9bf7ae2497
commit
2a5cdbf8e9
2 changed files with 7 additions and 4 deletions
|
|
@ -57,8 +57,5 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Global Just recipes (system-wide). Used when `XDG_CONFIG_DIRS` includes `/etc/xdg` (default).
|
# Global Just recipes (system-wide). Used when `XDG_CONFIG_DIRS` includes `/etc/xdg` (default).
|
||||||
environment.etc."xdg/just/justfile".text = justfileText;
|
environment.etc."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";
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,12 @@
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".justfile".text = ''
|
||||||
|
import '/etc/just/justfile'
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
xdg.userDirs = {
|
xdg.userDirs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
createDirectories = true;
|
createDirectories = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue