mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 18:53:54 -05:00
16 lines
339 B
Nix
16 lines
339 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.alyraffauf.services.tailscale.enable {
|
|
age.secrets.tailscaleAuthKey.file = ../../../secrets/tailscale/authKeyFile.age;
|
|
services.tailscale = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
authKeyFile = config.age.secrets.tailscaleAuthKey.path;
|
|
};
|
|
};
|
|
}
|