added tailscale

This commit is contained in:
mc-fucker 2021-11-07 11:44:06 +01:00
parent 1f794ae0f4
commit 02ea85f89f

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
let
sshPubkeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE+X4vceRi79FLwwyzFzxNvaQlolQFrpYn0N4bgdLLaI root@hardlyworking"
@ -48,6 +48,12 @@ in
enable = true;
passwordAuthentication = false;
};
tailscale.enable = true;
};
networking.firewall = {
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
environment.systemPackages = with pkgs; [
@ -56,6 +62,8 @@ in
git
screen
rxvt_unicode.terminfo
nmap
dig
(import ./vim.nix)
];
}