From 112593ef31837a6df5e18e175353ec1d19c9b920 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 1 Dec 2020 14:45:07 +0100 Subject: [PATCH] Reindex files in doom upgrade service --- modules/periodic.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"; }; };