Automated Dependency Updates for Nix (original) (raw)
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 managerFilePatterns value, please follow this link.
Supported datasources¶
This manager supports extracting the following datasources: git-refs.
Dependency types¶
This manager has no documented depType values.
Default config¶
{ "managerFilePatterns": [ "/(^|/)flake\\.nix$/" ], "commitMessageTopic": "nix", "commitMessageExtra": "to {{newValue}}", "enabled": false }
Lock File Maintenance¶
This manager supports lockFileMaintenance for the following file(s):
flake.lock
Additional Information¶
The nix manager supports:
- lockFileMaintenance updates for
flake.lock - input updates for
flake.lock
For specifying packageRules it is important to know how depName and packageName are defined for nix updates:
- The
depNamefield is equal to the nix flake input name, eg.nix.inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";would have thedepNameofnixpkgs - The
packageNamefield is equal to the fully-qualified root URL of the package source, eg.https://github.com/NixOS/nixpkgsfor the above example.
Open items¶
The below list of bugs were current when this page was generated on June 17, 2026.
Bug reports¶
- Nix extract function should return packageFile if lock file exists #29380