services: tailscale: move to service
This commit is contained in:
parent
3862992b76
commit
1d8750efed
4 changed files with 40 additions and 22 deletions
|
|
@ -21,11 +21,6 @@ in
|
|||
|
||||
boot.supportedFilesystems = [ "btrfs" ];
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv6.conf.all.forwarding" = true;
|
||||
"net.ipv4.ip_forward" = true;
|
||||
};
|
||||
|
||||
services.btrfs = {
|
||||
autoScrub = {
|
||||
enable = true;
|
||||
|
|
@ -33,18 +28,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.tailscale;
|
||||
};
|
||||
systemd.services.tailscaled = {
|
||||
path = [ pkgs.procps ];
|
||||
};
|
||||
networking.firewall = {
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
||||
};
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
@ -140,6 +123,8 @@ in
|
|||
enable = true;
|
||||
};
|
||||
|
||||
tailscale.enable = true;
|
||||
|
||||
tgv = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue