Hydra: Difference between revisions

imported>Oux
mNo edit summary
imported>Jrobsonchase
Add note about flakes evaluating in restricted mode
Line 72: Line 72:
   };
   };
}
}
</syntaxHighlight>
=== Restricted Mode ===
Hydra evaluates flakes in [https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-restrict-eval restricted mode]. This prevents access to files outside of the nix store, including those fetched as flake inputs. Update your <code>nix.settings.allowed-uris</code> to include URI prefixes from which you expect flake inputs to be fetched:
<syntaxHighlight lang=nix>
nix.settings.allowed-uris = [
  "github:"
  "git+https://github.com/"
  "git+ssh://github.com/"
];
</syntaxHighlight>
</syntaxHighlight>