Skip to content

Commit

Permalink
omnixrc: Support no-args case
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 24, 2024
1 parent 8b5dc70 commit d69c489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ watch_file \
crates/omnix-init/registry/flake.*

# Dogfood our own ./omnixrc!
# This may lead to compiling omnix if the commit hasn't yet been built in CI
# But let's live with that for now.
use omnix .
use omnix
2 changes: 1 addition & 1 deletion omnixrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use_omnix() {
nix --accept-flake-config run github:juspay/omnix -- hack --stage=pre-shell $*

# Use of --accept-flake-config ensures that configured cache is used to launch the devShell
use flake $* --accept-flake-config
use flake ${*:-.} --accept-flake-config

if [[ ! -z "${NIX_DIRENV_DID_FALLBACK:-}" ]]; then
# Nix shell failed; move on!
Expand Down

0 comments on commit d69c489

Please sign in to comment.