Skip to content

Commit

Permalink
fix: accept flake config
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Jul 18, 2024
1 parent 55cc60a commit 99086a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ nix-develop *args:
cd "{{root_dir}}" && \
cmd=("$@") && \
{ [ -n "${cmd:-}" ] || cmd=("zsh"); } && \
nix develop ./tools/nix#default --command "${cmd[@]}"
nix develop ./tools/nix#default --accept-flake-config --command "${cmd[@]}"

nix-develop-ci *args:
#!/usr/bin/env bash
set -eu
cd "{{root_dir}}"
cachix watch-exec "$CACHIX_CACHE_NAME" -- \
nix develop ./tools/nix#ci --command "$@"
nix develop ./tools/nix#ci --accept-flake-config --command "$@"
## Standard stuff =============================================================
# Format the code.
Expand Down
4 changes: 4 additions & 0 deletions tools/nix/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"tripsu.cachix.org-1:pWZmirIwlMxGMVWSDMjQm4R+zLp8gtaT8OfH0Sv/j4E="
];
extra-trusted-substituters = [
"https://tripsu.cachix.org"
"https://cache.nixos.org/"
];
};

inputs = {
Expand Down

0 comments on commit 99086a7

Please sign in to comment.