Dotfiles : Enable auto-updates.

This commit is contained in:
Dmitry Voronin 2024-03-03 19:29:54 +03:00
parent aa9ca90e02
commit 2bf9cf4dd5

View file

@ -26,11 +26,13 @@
${lib.getExe pkgs.git} clean -f
};
${lib.getExe pkgs.git} pull
[[ "$UID" = "0" ]] && [[ "$HOSTNAME" != "live" ]] && nix rebuild
'';
};
timer = {
timerConfig = {
OnCalendar = "daily";
Persistent = true;
Unit = "dotfiles.service";
};
wantedBy = [ "timers.target" ];