Something went wrong. Try again.
nix
Something went wrong. Try again.
nix-config justfile
719 B · 40 lines
Just
at main
1234567891011121314151617181920212223242526272829303132333435363738394041# https://just.systemsjustfile_dir := justfile_directory()flake_path := justfile_dir + "?submodules=1"is_nixos := path_exists("/etc/NIXOS")nh_sub := if is_nixos == "true" { "os" } else if os() == "macos" { "darwin" } else { "home" }alias fmt := formatexport NH_FLAKE := flake_pathdefault: @{{ just_executable() }} --justfile {{ justfile() }} --listflake: nix run '.#write-flake'lock: flake nix flake lockupdate: flake nix flake updatecheck: nix flake checkformat: nix fmtbuild *args: nh {{ nh_sub }} build {{ args }}test *args: nh {{ nh_sub }} test {{ args }}switch *args: nh {{ nh_sub }} switch {{ args }}boot *args: nh {{ nh_sub }} boot {{ args }}