From 15f36bcd0e17f8fcd3b135f5eb2916cf71706e0b Mon Sep 17 00:00:00 2001 From: oqyude Date: Tue, 13 Oct 2026 03:10:31 +0300 Subject: [PATCH] fix(pxe-infra): wantedBefore -> before in pxe-infra-bridge NixOS systemd module does not have a `wantedBefore` attribute (it is a Unit-file directive, not a NixOS option). The equivalent is `before = [ "dnsmasq.service" ]`, which says "this unit is ordered to start before dnsmasq.service". The previous value made nix flake check / nixos-rebuild fail with: error: The option `systemd.services.pxe-infra-bridge.wantedBefore` does not exist. Did you mean `systemd.services.pxe-infra-bridge.wantedBy`, `systemd.services.pxe-infra-bridge.before` or `systemd.services.pxe-infra-bridge.after`? which surfaced when we tried to actually switch on the rig after enabling pxe-infra in mini-laptop.nix. --- modules/pxe-infra/bridge.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pxe-infra/bridge.nix b/modules/pxe-infra/bridge.nix index ee04988..bd9e953 100644 --- a/modules/pxe-infra/bridge.nix +++ b/modules/pxe-infra/bridge.nix @@ -29,7 +29,7 @@ description = "pxe-infra: bring up ${config.pxe-infra.bridge.name} bridge"; wantedBy = [ "multi-user.target" ]; after = [ "systemd-modules-load.service" ]; - wantedBefore = [ "dnsmasq.service" ]; + before = [ "dnsmasq.service" ]; path = [ pkgs.iproute2 ]; serviceConfig = { Type = "oneshot";