0

我正在尝试nix-direnv设置nix-darwin. 我尝试将以下参数添加到我的configuration.nix

  programs.direnv = {
    enable = true;
    enableNixDirenvIntegration = true;
    # enableBashIntegration = true;
    # enableZshIntegration = true;
  };

但是这些代码给了我这样的错误:

error: The option `programs.direnv' does not exist. Definition values:
- In `~/.nixpkgs/darwin-configuration.nix':
    {
      enable = true;
      enableNixDirenvIntegration = true;
    }

如何nix-direnv正确集成nix-darwin

4

0 回答 0