diff options
author | William Carroll <wpcarro@google.com> | 2022-02-02 10:48:14 -0800 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2022-02-03 12:19:47 +0100 |
commit | b8305074253b16fe0d98778491ee08f81f100281 (patch) | |
tree | 37bd081afb1371c082464033a53b71f192323ea4 | |
parent | f1ae6942a593843178d552b22302350eb9f2ca08 (diff) |
nixos/self-deploy: consume self-deploy's startAt attribute
As #157879 points-out, this attribute appears unused. Fixes #157879
-rw-r--r-- | nixos/modules/services/system/self-deploy.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/system/self-deploy.nix b/nixos/modules/services/system/self-deploy.nix index 33d15e08f4aac..6224c8f748e95 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)) |