diff --git a/nixos/modules/services/system/self-deploy.nix b/nixos/modules/services/system/self-deploy.nix index 33d15e08f4aa..6224c8f748e9 100644 --- a/nixos/modules/services/system/self-deploy.nix +++ b/nixos/modules/services/system/self-deploy.nix @@ -128,6 +128,8 @@ in systemd.services.self-deploy = { wantedBy = [ "multi-user.target" ]; + startAt = cfg.startAt; + requires = lib.mkIf (!(isPathType cfg.repository)) [ "network-online.target" ]; environment.GIT_SSH_COMMAND = lib.mkIf (!(isNull cfg.sshKeyFile))