Skip to content

Commit

Permalink
feat: add tailscale
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsgirao committed Feb 18, 2025
1 parent bede1c0 commit 34f4676
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/sazed/machine.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ in
../../modules/sshguard.nix
];

services.tailscale.port = 31070;
boot.initrd.network.ssh.port = 31022;

services.caddy.virtualHosts = {
Expand Down
1 change: 1 addition & 0 deletions modules/core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ in
{
imports = [
./nebula.nix
./tailscale.nix
# ./hardening.nix
./nix.nix
./ssh.nix
Expand Down
10 changes: 10 additions & 0 deletions modules/core/tailscale.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
_: {
services.tailscale = {
enable = true;

openFirewall = true;

environment.persistence."/pst".directories = [ "/var/lib/tailscale" ];
};

}

0 comments on commit 34f4676

Please sign in to comment.