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 f3e7dac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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
8 changes: 6 additions & 2 deletions tools/nix/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@

nixConfig = {
substituters = [
"https://cache.nixos.org/"
"https://cache.nixos.org"
];
extra-substituters = [
"https://tripsu.cachix.org/"
"https://tripsu.cachix.org"
# Nix community's cache server
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"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 f3e7dac

Please sign in to comment.