Skip to content

Automated Dependency Updates for Nix

Categories: no-category

Renovate supports updating Nix dependencies.

Enabling

Nix functionality is currently in beta testing, so you must opt-in to test it. To enable it, add a configuration like this to either your bot config or your renovate.json:

{
  "nix": {
    "enabled": true
  }
}

If you find any bugs, please create a new discussion first. If you find that it works well, then let us know too.

File Matching

By default, Renovate will check any files matching the following regular expression: (^|/)flake\.nix$.

For details on how to extend a manager's fileMatch value, please follow this link.

Supported datasources

This manager supports extracting the following datasources: git-refs.

Default config

{
  "fileMatch": [
    "(^|/)flake\\.nix$"
  ],
  "commitMessageTopic": "nixpkgs",
  "commitMessageExtra": "to {{newValue}}",
  "enabled": false
}

Additional Information

The nix manager supports:

Open items

The below list of features and bugs were current when this page was generated on December 07, 2024.

Feature requests

  • Support shorthand nixpkgs references #18955

Bug reports

  • lockFileMaintenance does not refresh Nix flake.lock files unless a string like "github:NixOS/nixpkgs/anything" is present in flake.nix #29721
  • Nix extract function should return packageFile if lock file exists #29380