home-manager icon indicating copy to clipboard operation
home-manager copied to clipboard

autoUpgrade in home-manager

Open timokau opened this issue 7 years ago • 11 comments

Nixos offers the autoUpgrade option to automatically do the equivalent of nix-channel --update && nixos-rebuild switch regularly. Should we do the same for home-manager?

timokau avatar Aug 13 '18 16:08 timokau

Sound like a good idea. Assuming the programs.home-manager.path is set to a download location then in principle it could be done using a systemd user timer. I.e. similar to how it works when Home Manager is run as a NixOS module.

I'll think about how to best set it up.

rycee avatar Aug 20 '18 20:08 rycee

It sounds like you are talking about updating home-manager itself. What I meant was updating the programs managed through home-manager.

timokau avatar Aug 20 '18 21:08 timokau

I'd like to see this feature added too.

ghost avatar Feb 08 '19 12:02 ghost

Thank you for your contribution! I marked this issue as stale due to inactivity. If this remains inactive for another 7 days, I will close this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

  • If this is resolved, please consider closing it so that the maintainers know not to focus on this.
  • If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
If you are not the original author of the issue

  • If you are also experiencing this issue, please add details of your situation to help with the debugging process.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
Memorandum on closing issues

If you have nothing of substance to add, please refrain from commenting and allow the bot close the issue. Also, don't be afraid to manually close an issue, even if it holds valuable information.

Closed issues stay in the system for people to search, read, cross-reference, or even reopen--nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.

stale[bot] avatar Apr 29 '21 02:04 stale[bot]

If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough.

I would no longer use such a feature since I prefer to pin nixpkgs which requires explicit updates anyway. Therefore I'll follow the bot's guideline and close this. It seems like some other people were interested in this at some point. I can re-open this if somebody is interested in taking over.

timokau avatar Apr 29 '21 15:04 timokau

heya, i'd still be interested in seeing this feature. is the right thing to open another issue or would it be possible to reopen this?

spagy avatar Apr 29 '21 15:04 spagy

@spagy there was an attempt to create an autoUpgrade service in #1365. Maybe you can try and resurrect that PR?

sumnerevans avatar Apr 29 '21 17:04 sumnerevans

I'll reopen this for now. It seems like there is still interest and this issue can be used for tracking progress if there is any. I will unsubscribe though, so please ping me if necessary.

timokau avatar May 08 '21 13:05 timokau

I think this could be pretty useful. I use flakes, but with an updating and testing GitHub action or something like that on the flake, automatic upgrades could be really nice, especially since I use some packages that rebuild often (a.k.a. neovim-nightly).

cyntheticfox avatar Jul 14 '21 20:07 cyntheticfox

services.home-manager-auto-upgrade is already implemented in modules/services/home-manager-auto-upgrade.nix .

imincik avatar Aug 05 '22 14:08 imincik

it should be support flakes

luxus avatar Aug 05 '22 16:08 luxus

I agree, it should support flakes.

wyndon avatar Oct 02 '22 20:10 wyndon