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} clean -f
|
||||||
};
|
};
|
||||||
${lib.getExe pkgs.git} pull
|
${lib.getExe pkgs.git} pull
|
||||||
|
[[ "$UID" = "0" ]] && [[ "$HOSTNAME" != "live" ]] && nix rebuild
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
timer = {
|
timer = {
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
|
Persistent = true;
|
||||||
Unit = "dotfiles.service";
|
Unit = "dotfiles.service";
|
||||||
};
|
};
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
|
|
Reference in a new issue