You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Vladimir Serov 2d98057698
updated tasks.json
1 month ago
.vscode updated tasks.json 1 month ago
nix env: added niv pins 10 months ago
src added ipv6 public net prefixes (*) 1 month ago
.envrc moved to flake shell 2 months ago
.gitignore ignoring .direnv for nix-direnv 2 months ago
.gitlab-ci.yml Code quality doesn't really work 9 months ago
.pre-commit-config.yaml updated hooks 1 month ago
Cargo.lock Bumped version to 0.2.1 to update metadata 9 months ago
Cargo.toml Now using GPLv3 or later in Cargo.toml 9 months ago
LICENSE Add LICENSE 1 year ago readme: typo in nixos domain, oops 7 months ago
flake.lock moved to flake shell 2 months ago
flake.nix calling hook install if no pre-commit-hook present 1 month ago
peek.gif better gif 1 year ago
shell.nix env: added niv pins 10 months ago
wg-bond.json small update on example config 11 months ago


Easy Wireguard configurator.


I didn't write any documentation yet, but --help option is available.

NixOps example

# Initialize a config:
wgbond init wgvpn

# Add server:
wgbond add server \
--endpoint \
--nixops \          # Include into NixOps export
--center \          # Make clients use this peer as gateway
--gateway \         # And get internet through it
--masquerade eth0   # And forward via eth0

wgbond add phone --keepalive 30

# Generate and push config to your NixOps cluster
wgbond nixops > wg.nix
nixops modify wg.nix machines.nix
nixops deploy

# Generate config for your phone
wgbond qr phone


Use VSCodium + Nix for the best experience. Just add recommended extensions, and you are good to go.