Skip to content

Commit

Permalink
fix: derper
Browse files Browse the repository at this point in the history
  • Loading branch information
jz8132543 committed Nov 19, 2024
1 parent 8858e1c commit e13ac1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions nixos/modules/base/nixpkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,17 @@ let
inherit (inputs'.nix-gc-s3.packages) nix-gc-s3;
# inherit (inputs'.headscale.packages) headscale;
clash2sing-box = inputs'.clash2sing-box.packages.default;
tailscale = prev.tailscale.overrideAttrs (_old: {
tailscale = prev.tailscale.overrideAttrs (old: {
# tailscale = inputs'.tailscale.packages.tailscale.overrideAttrs (old: {
# subPackages = old.subPackages ++ [ "cmd/derper" ] ++ [ "cmd/derpprobe" ];
subPackages = [
"cmd/tailscale"
"cmd/tailscaled"
"cmd/derper"
"cmd/stunc"
"cmd/hello"
];
postInstall = lib.strings.concatStrings [
"alias ln=echo\n"
"cp $out/bin/derper $out/bin/derp && "
old.postInstall
];
});
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/derp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
serviceConfig = {
Restart = "always";
DynamicUser = true;
ExecStart = "${pkgs.tailscale}/bin/derper -a ':${toString config.ports.derp}' -stun-port ${toString config.ports.derp-stun} --hostname='${config.networking.fqdn}' -c /tmp/derper.conf -verify-clients";
ExecStart = "${pkgs.tailscale}/bin/derp -a ':${toString config.ports.derp}' -stun-port ${toString config.ports.derp-stun} --hostname='${config.networking.fqdn}' -c /tmp/derper.conf -verify-clients";
# ExecStart = "${pkgs.tailscale}/bin/derper -a ':${toString config.ports.derp}' -stun-port ${toString config.ports.derp-stun} --hostname='${config.networking.fqdn}' -c /tmp/derper.conf -verify-clients -dev";
# if !config.environment.isNAT
# then "${pkgs.tailscale}/bin/derper -a ':${toString config.ports.derp}' -stun-port ${toString config.ports.derp-stun} --hostname='${config.networking.fqdn}' -c /tmp/derper.conf -verify-clients -dev"
Expand Down

0 comments on commit e13ac1f

Please sign in to comment.