From 093d8aa023c328e043945e571d41abf31f8813ba Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 6 May 2021 01:58:43 +0200 Subject: [PATCH] Remove wantedBy target in user timers --- modules/periodic.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/periodic.nix b/modules/periodic.nix index 42fdbb4..453c8c8 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -4,11 +4,9 @@ # Upgrade Doom Emacs daily systemd.user.services.doom-upgrade = { 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" - ${pkgs.bash}/bin/bash -c "/home/coolneng/.emacs.d/bin/doom sync" ''; serviceConfig.Type = "oneshot"; startAt = "22:00:00"; @@ -17,19 +15,17 @@ # Clean up Doom Emacs monthly systemd.user.services.doom-purge = { description = "Purge 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 purge" ''; serviceConfig.Type = "oneshot"; - startAt = "13-*-* 22:00:00"; + startAt = "13-*-* 20:00:00"; }; # Upgrade Neovim plugins weekly systemd.user.services.vim-plug-upgrade = { description = "Upgrade Vim-Plug"; - wantedBy = [ "default.target" ]; path = [ pkgs.git pkgs.neovim ]; script = "${pkgs.neovim}/bin/nvim +PlugUpgrade +PlugUpdate +qa"; serviceConfig.Type = "oneshot"; @@ -39,7 +35,6 @@ # Push password-store changes to git daily systemd.user.services.password-store-push = { description = "Push password-store changes to git"; - wantedBy = [ "default.target" ]; path = [ pkgs.pass-wayland pkgs.git pkgs.gitAndTools.pass-git-helper ]; script = "${pkgs.pass-wayland}/bin/pass git push"; serviceConfig.Type = "oneshot";