Skip to content

Commit

Permalink
fix(os::net:tailscale): enable conditionally to prevent lockouts
Browse files Browse the repository at this point in the history
  • Loading branch information
montchr committed Jul 9, 2024
1 parent 375ad0d commit ffd3de2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
2 changes: 2 additions & 0 deletions machines/boschic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ in

### === networking ===========================================================

services.tailscale.enable = true;

# FIXME: no connection on boot -- i need to disable internet and re-enable
# every time despite indication of a wired connection in GNOME status bar
networking =
Expand Down
2 changes: 2 additions & 0 deletions machines/chert/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ let
inherit (config.networking) hostName;
in
{
services.tailscale.enable = true;

networking.domain = ops.hosts.${hostName}.domain;
}
2 changes: 2 additions & 0 deletions machines/gabbro/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ let
inherit (config.networking) hostName;
in
{
services.tailscale.enable = true;

networking.domain = ops.hosts.${hostName}.domain;
}
1 change: 1 addition & 0 deletions machines/hierophant/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ in
networking.nameservers = dns.nameservers.cloudflare;

# Allow this host to function as a Tailscale exit node.
services.tailscale.enable = true;
services.tailscale.useRoutingFeatures = "both";
}
2 changes: 2 additions & 0 deletions machines/hodgepodge/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
};
};

services.tailscale.enable = true;

networking.usePredictableInterfaceNames = false;
networking.firewall.enable = true;

Expand Down
2 changes: 2 additions & 0 deletions machines/ryosuke/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
time.timeZone = "America/New_York";
networking.firewall.enable = true;

services.tailscale.enable = true;

system.stateVersion = "22.05";
}
10 changes: 2 additions & 8 deletions nixos/profiles/networking/tailscale.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
lib,
config,
# pkgs,
...
}:
{
services.tailscale.enable = true;
{ lib, config, ... }:
lib.mkIf config.services.tailscale.enable {
services.tailscale.interfaceName = "ts0";
services.tailscale.useRoutingFeatures = "client";

Expand Down

0 comments on commit ffd3de2

Please sign in to comment.