Skip to content

Commit

Permalink
Add omnixrc
Browse files Browse the repository at this point in the history
This will be used in other projects down the line.
  • Loading branch information
srid committed Oct 17, 2024
1 parent de7224b commit 2422ed9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
source ./omnixrc

watch_file \
nix/modules/nixpkgs.nix \
nix/modules/rust.nix \
Expand All @@ -6,4 +8,8 @@ watch_file \
*.nix \
rust-toolchain.toml \
crates/omnix-init/registry/flake.*
use 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 .
10 changes: 10 additions & 0 deletions omnixrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- mode: sh -*-
# shellcheck shell=bash

use_omnix() {
# TODO: Switch to nixpkgs version once we upstream
# Because, the user may not be a trusted-user leading to compilation!
nix --accept-flake-config run github:juspay/omnix health $*

use flake $*
}

0 comments on commit 2422ed9

Please sign in to comment.