Add tailscale support to linode
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
];
|
];
|
||||||
greg.home = false;
|
greg.home = false;
|
||||||
greg.linode.enable = true;
|
greg.linode.enable = true;
|
||||||
|
greg.tailscale.enable = true;
|
||||||
networking.hostName = "linode";
|
networking.hostName = "linode";
|
||||||
networking.domain = "thehellings.com";
|
networking.domain = "thehellings.com";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
./linode.nix
|
./linode.nix
|
||||||
./proxy.nix
|
./proxy.nix
|
||||||
./rpi4.nix
|
./rpi4.nix
|
||||||
|
./tailscale.nix
|
||||||
./xprograms.nix
|
./xprograms.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{ lib, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.greg.tailscale;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
greg.tailscale.enable = lib.mkEnableOption "Enable Tailscale";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
networking.firewall.checkReversePath = "loose";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user