move home-manager update to auto-upgrade module
1 file changed, 18 insertions(+), 0 deletions(-)
changed files
M system/settings/configuration/auto-upgrade.nix → system/settings/configuration/auto-upgrade.nix
@@ -1,6 +1,7 @@ { config, lib, + pkgs, ... }: let@@ -27,6 +28,23 @@ git checkout -- flake.lock git pull --recurse-submodules=yes fi ''; + }; + + systemd.services.home-manager-update = { + enable = lib.mkDefault false; + startAt = "weekly"; + wants = [ "update-nixfiles.service" ]; + path = with pkgs; [ + openssh + nix + config.programs.git.package + ]; + serviceConfig = rec { + Type = "oneshot"; + User = "alin"; + WorkingDirectory = nixfiles; + ExecStart = "${lib.getExe pkgs.nh} home switch --file . homeConfigurations.${User}@%H --no-nom"; + }; }; system.autoUpgrade = {