Skip to content

Commit

Permalink
system(nix): Forbid import from derivation
Browse files Browse the repository at this point in the history
Helps prevent issues where we accidentally use an import from derivation
and cause flakes with multiple platforms to fail when running things
like `nix flake check`.
  • Loading branch information
donovanglover committed Jun 21, 2024
1 parent 3b25740 commit 79401e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/system.nix
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ in
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
auto-optimise-store = true;
warn-dirty = false;
allow-import-from-derivation = false;

trusted-users = [
"root"
Expand Down

0 comments on commit 79401e0

Please sign in to comment.