nix.nix 694 B

123456789101112131415161718192021222324252627
  1. { pkgs, lib, ... }:
  2. {
  3. nix = {
  4. settings = {
  5. substituters = [
  6. "https://cache.nixos.org/"
  7. "https://devenv.cachix.org"
  8. "https://nix-community.cachix.org"
  9. ];
  10. trusted-public-keys = [
  11. "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
  12. "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
  13. "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
  14. ];
  15. trusted-users = [ "thomas" ];
  16. };
  17. package = lib.mkDefault pkgs.nixVersions.stable;
  18. extraOptions = ''
  19. warn-dirty = false
  20. experimental-features = nix-command flakes impure-derivations
  21. '';
  22. };
  23. }