Fix doom upgrade and doom purge services

This commit is contained in:
coolneng 2020-11-29 20:14:56 +01:00
parent da3d6b1b46
commit 695badd6ba
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 8 additions and 11 deletions

View File

@ -6,12 +6,10 @@
systemd.user.services.doom-upgrade = {
description = "Upgrade Doom Emacs";
wantedBy = [ "default.target" ];
path = [ pkgs.emacs pkgs.git ];
serviceConfig = {
Type = "oneshot";
ExecStart =
"/bin/sh /home/coolneng/.emacs.d/bin/doom -y upgrade ; /bin/sh /home/coolneng/.emacs.d/bin/doom -y sync -u";
};
path = with pkgs; [ bash emacsGccPgtk git coreutils ];
script =
"${pkgs.bash}/bin/bash -c '/home/coolneng/.emacs.d/bin/doom -y upgrade'";
serviceConfig = { Type = "oneshot"; };
};
systemd.user.timers.doom-upgrade = {
@ -27,11 +25,10 @@
systemd.user.services.doom-purge = {
description = "Purge Doom Emacs";
wantedBy = [ "default.target" ];
path = [ pkgs.emacs ];
serviceConfig = {
Type = "oneshot";
ExecStart = "/bin/sh /home/coolneng/.emacs.d/bin/doom purge";
};
path = with pkgs; [ bash emacsGccPgtk git coreutils ];
script =
"${pkgs.bash}/bin/bash -c '/home/coolneng/.emacs.d/bin/doom -y purge'";
serviceConfig = { Type = "oneshot"; };
};
systemd.user.timers.doom-purge = {