mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
Adds the ability for the auto-upgrade service to update a Nix flake instead of Nix channels. This is controlled by a new `useFlake` boolean option. When enabled, the service will run `nix flake update` in the directory specified by the `flakeDir` option. `flakeDir` defaults to the standard Home Manager configuration directory (`~/.config/home-manager`), making this feature work out-of-the-box for most users. The path is passed to the upgrade script via an environment variable in the systemd service unit.
12 lines
426 B
Nix
12 lines
426 B
Nix
{
|
|
time = "2025-10-25T14:45:39+00:00";
|
|
condition = true;
|
|
message = ''
|
|
The home-manager auto-upgrade service now supports updating Nix flakes.
|
|
|
|
Enable this by setting `services.home-manager.autoUpgrade.useFlake = true;`.
|
|
|
|
The flake directory can be configured with `services.home-manager.autoUpgrade.flakeDir`,
|
|
which defaults to the configured XDG config home (typically `~/.config/home-manager`).
|
|
'';
|
|
}
|