Fix doom upgrade and doom purge services
This commit is contained in:
parent
da3d6b1b46
commit
695badd6ba
|
@ -6,12 +6,10 @@
|
||||||
systemd.user.services.doom-upgrade = {
|
systemd.user.services.doom-upgrade = {
|
||||||
description = "Upgrade Doom Emacs";
|
description = "Upgrade Doom Emacs";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = [ pkgs.emacs pkgs.git ];
|
path = with pkgs; [ bash emacsGccPgtk git coreutils ];
|
||||||
serviceConfig = {
|
script =
|
||||||
Type = "oneshot";
|
"${pkgs.bash}/bin/bash -c '/home/coolneng/.emacs.d/bin/doom -y upgrade'";
|
||||||
ExecStart =
|
serviceConfig = { Type = "oneshot"; };
|
||||||
"/bin/sh /home/coolneng/.emacs.d/bin/doom -y upgrade ; /bin/sh /home/coolneng/.emacs.d/bin/doom -y sync -u";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.timers.doom-upgrade = {
|
systemd.user.timers.doom-upgrade = {
|
||||||
|
@ -27,11 +25,10 @@
|
||||||
systemd.user.services.doom-purge = {
|
systemd.user.services.doom-purge = {
|
||||||
description = "Purge Doom Emacs";
|
description = "Purge Doom Emacs";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = [ pkgs.emacs ];
|
path = with pkgs; [ bash emacsGccPgtk git coreutils ];
|
||||||
serviceConfig = {
|
script =
|
||||||
Type = "oneshot";
|
"${pkgs.bash}/bin/bash -c '/home/coolneng/.emacs.d/bin/doom -y purge'";
|
||||||
ExecStart = "/bin/sh /home/coolneng/.emacs.d/bin/doom purge";
|
serviceConfig = { Type = "oneshot"; };
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.timers.doom-purge = {
|
systemd.user.timers.doom-purge = {
|
||||||
|
|
Loading…
Reference in New Issue