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 4ed56dd24e
flake: bumped everything, now using nixpkgs from fenix everywhere
2 weeks ago
.vscode nix env selector is dead, long live direnv 2 weeks ago
nix env: added niv pins 1 year ago
src added ipv6 public net prefixes (*) 7 months ago
.envrc moved to flake shell 8 months ago
.gitignore ignoring .direnv for nix-direnv 8 months ago
.gitlab-ci.yml Code quality doesn't really work 1 year ago
.pre-commit-config.yaml updated hooks 7 months ago
Cargo.lock Bumped version to 0.2.1 to update metadata 1 year ago
Cargo.toml Now using GPLv3 or later in Cargo.toml 1 year ago
LICENSE Add LICENSE 2 years ago
README.md readme: typo in nixos domain, oops 1 year ago
default.nix env: bumped flake-compat 2 weeks ago
flake.lock flake: bumped everything, now using nixpkgs from fenix everywhere 2 weeks ago
flake.nix flake: bumped everything, now using nixpkgs from fenix everywhere 2 weeks ago
peek.gif better gif 2 years ago
shell.nix env: bumped flake-compat 2 weeks ago
wg-bond.json small update on example config 1 year ago

README.md

wg-bond

Easy Wireguard configurator.

preview

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 example.com:42000 \
--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

Developing

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