diff --git a/modules/periodic.nix b/modules/periodic.nix index ecdf5d9..3b4fe38 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -7,8 +7,10 @@ description = "Upgrade Doom Emacs"; wantedBy = [ "default.target" ]; path = with pkgs; [ bash emacsPgtkGcc git coreutils ]; - script = - "${pkgs.bash}/bin/bash -c '/home/coolneng/.emacs.d/bin/doom -y upgrade'"; + script = '' + ${pkgs.bash}/bin/bash -c "/home/coolneng/.emacs.d/bin/doom -y upgrade" + ${pkgs.bash}/bin/bash -c "/home/coolneng/.emacs.d/bin/doom sync" + ''; serviceConfig = { Type = "oneshot"; }; };