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.
This commit is contained in:
oqyude committed 2026-10-13 03:10:31 +03:00
1 parent dfb939bdab
commit 15f36bcd0e
1 file changed
+1 -1
+1 -1
View File
@@ -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";