Dotfiles : Enable auto-updates.
This commit is contained in:
parent
aa9ca90e02
commit
2bf9cf4dd5
|
@ -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" ];
|
||||
|
|
Reference in a new issue