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:
1 parent
dfb939bdab
commit
15f36bcd0e
1 file changed
+1
-1
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user