From b8305074253b16fe0d98778491ee08f81f100281 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 2 Feb 2022 10:48:14 -0800 Subject: [PATCH] nixos/self-deploy: consume self-deploy's startAt attribute As #157879 points-out, this attribute appears unused. Fixes #157879 --- nixos/modules/services/system/self-deploy.nix | 2 ++ 1 file changed, 2 insertions(+) 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))