From d2202e97fb76124cbfa0d8f718879b0721457fd9 Mon Sep 17 00:00:00 2001 From: "Janik H." Date: Fri, 19 Jul 2024 00:49:17 +0200 Subject: [PATCH] infra: fix warnings --- hosts/bagel-box/default.nix | 1 + hosts/git/default.nix | 1 + services/hydra/default.nix | 1 + 3 files changed, 3 insertions(+) diff --git a/hosts/bagel-box/default.nix b/hosts/bagel-box/default.nix index 5d153ac..df74126 100644 --- a/hosts/bagel-box/default.nix +++ b/hosts/bagel-box/default.nix @@ -53,5 +53,6 @@ services.openssh.enable = true; + system.stateVersion = "24.11"; deployment.targetHost = "bagel-box.infra.forkos.org"; } diff --git a/hosts/git/default.nix b/hosts/git/default.nix index 065c4f3..4399485 100644 --- a/hosts/git/default.nix +++ b/hosts/git/default.nix @@ -34,6 +34,7 @@ in # the required (additional) IPv6 address, leading to sshd to not being able to # bind to the requested IP, crashing 5 times and running into the default # restart counter limit (5). + systemd.services.sshd.wants = [ "network-online.target" ]; systemd.services.sshd.after = [ "network-online.target" ]; bagel.services.forgejo = { diff --git a/services/hydra/default.nix b/services/hydra/default.nix index 685bc98..411032c 100644 --- a/services/hydra/default.nix +++ b/services/hydra/default.nix @@ -128,6 +128,7 @@ in { ''; }; + systemd.services.hydra-queue-runner.wants = [ "network-online.target" ]; systemd.services.hydra-queue-runner.serviceConfig.EnvironmentFile = config.age.secrets.hydra-s3-credentials.path;