wait-online
is a standalone replacement for systemd-networkd-wait-online
/nm-online
.
- make
- cargo
- rustc
make
sudo make install
sudo systemctl enable network-standalone-wait-online.service
inputs.standalone-network-wait-online = "github:vdbe/wait-online";
#inputs.standalone-network-wait-online.inputs.nixpkgs.follows = "nixpkgs";
outputs = { self, nixpkgs, standalone-network-wait-online, ... }: {
nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
standalone-network-wait-online.nixosModules.default
./configuration.nix
];
standalone-network-wait-online.enable = true;
};
};
All options can be found under standalone-network-wait-online
.
- enable
- requiredInterfaces
- ignoredInterfaces
- requireIpv4
- requireIpv6
- anyInterface
- timeout
- interval
See the module file for more info
or wait-online --help
.