https://github.com/vdbe/wait-online
A program that waits untill all interfaces are up.
https://github.com/vdbe/wait-online
network-online nixos-module
Last synced: about 1 year ago
JSON representation
A program that waits untill all interfaces are up.
- Host: GitHub
- URL: https://github.com/vdbe/wait-online
- Owner: vdbe
- License: mit
- Created: 2023-09-02T15:43:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-27T03:40:12.000Z (about 2 years ago)
- Last Synced: 2025-01-21T07:24:17.723Z (over 1 year ago)
- Topics: network-online, nixos-module
- Language: Rust
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wait-online
`wait-online` is a standalone replacement for `systemd-networkd-wait-online`/`nm-online`.
## Installation
### Building from source
#### Dependencies
- make
- cargo
- rustc
```
make
sudo make install
sudo systemctl enable network-standalone-wait-online.service
```
## Usage in NixOS (Flakes)
### Install wait-online
```nix
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;
};
};
```
### Options
All options can be found under `standalone-network-wait-online`.
- enable
- requiredInterfaces
- ignoredInterfaces
- requireIpv4
- requireIpv6
- anyInterface
- timeout
- interval
See the [module file](nix/modules/standalone-wait-online.nix) for more info
or `wait-online --help`.