all repos — nixfiles @ 5fdc1a576d0b039e65f8d9238ec34950c5019f55

System and user configuration, managed by nix and home-manager

move home-manager update to auto-upgrade module

Alin
commit

5fdc1a576d0b039e65f8d9238ec34950c5019f55

parent

3829da7df19192a1381a057f140bd4166b86a212

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 = {