Skip to content

Commit

Permalink
Bump cloudflare-warp and note troubleshooting
Browse files Browse the repository at this point in the history
Closes GH-749
  • Loading branch information
kachick committed Sep 7, 2024
1 parent ee0b35f commit 49fd11c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
10 changes: 10 additions & 0 deletions nixos/WARP.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,13 @@ Or use <https://github.com/jason5ng32/MyIP> with accessing to <https://ipcheck.i
```bash
warp-cli disconnect
```

## Split Tunnels

If you encounter connection problems such as [GH-749](https://github.com/kachick/dotfiles/issues/749), you can eclude specific addresses from WARP

```bash
warp-cli tunnel host add plugins.dprint.dev
```

See [official document](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/) for detail.
2 changes: 2 additions & 0 deletions nixos/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@

services.cloudflare-warp = {
enable = true;
# Use newer version to break down issues such as GH-749
package = edge-pkgs.cloudflare-warp;
};

# Define a user account. Don't forget to set a password with ‘passwd’.
Expand Down
9 changes: 7 additions & 2 deletions nixos/gui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ pkgs, lib, ... }:
{
pkgs,
edge-pkgs,
lib,
...
}:
{
services.xserver = {
enable = true;
Expand Down Expand Up @@ -78,7 +83,7 @@
environment.etc."gdm/PostLogin/Default".source = lib.getExe (
pkgs.writeShellApplication {
name = "connect_cloudflare-warp";
runtimeInputs = with pkgs; [ cloudflare-warp ];
runtimeInputs = with edge-pkgs; [ cloudflare-warp ];
text = ''
warp-cli connect
'';
Expand Down

0 comments on commit 49fd11c

Please sign in to comment.