blob: 97e1217fafc23b57682f19400b71fbfb14a29835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ config, lib, ... }:
with lib;
let
cfg = config.modules.services.tailscale;
in
{
options.modules.services.tailscale = {
enable = mkEnableOption "tailscale";
};
config = mkIf cfg.enable {
services.tailscale = {
enable = true;
useRoutingFeatures = "both";
};
modules.persistence.directories = [
"/var/lib/tailscale"
];
};
}
|