From c032f4c09c83feb933d520ccce80e70a1516ca35 Mon Sep 17 00:00:00 2001 From: aristote Date: Fri, 21 Nov 2025 09:49:24 +0100 Subject: home: check network before daily services --- modules/home-manager/personal/programs/emacs.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'modules/home-manager/personal/programs/emacs.nix') diff --git a/modules/home-manager/personal/programs/emacs.nix b/modules/home-manager/personal/programs/emacs.nix index 3b00555..5b579c4 100644 --- a/modules/home-manager/personal/programs/emacs.nix +++ b/modules/home-manager/personal/programs/emacs.nix @@ -75,8 +75,8 @@ in home.file.".spacemacs.d/init.el".source = lib.mkDefault config.personal.home.dotfiles.spacemacs; # service to update spacemacs - systemd.user = ( - pkgs.personal.lib.homeManager.serviceWithTimer "spacemacs-update" { + systemd.user = lib.mkMerge [ + (pkgs.lib.personal.services.home.serviceWithTimer "spacemacs-update" { Unit = { Description = "Update Spacemacs by pulling the develop branch"; After = [ @@ -96,7 +96,13 @@ in Install = { WantedBy = [ "default.target" ]; }; - } - ); + }) + ({ + services.spacemacs-update = pkgs.lib.personal.services.home.checkNetwork { + hosts = [ "github.com" ]; + restart = true; + }; + }) + ]; }; } -- cgit v1.2.3