autoprovision tailscale

This commit is contained in:
TheWanderingCrow 2025-10-16 15:50:44 -04:00
parent d100182228
commit 5213ecc447
2 changed files with 13 additions and 1 deletions

View file

@ -1,6 +1,17 @@
{pkgs, ...}: {
{
config,
inputs,
pkgs,
...
}: let
sopsFolder = builtins.toString inputs.nix-secrets + "/sops";
in {
sops.secrets."tailscale-key" = {
sopsFile = "${sopsFolder}/shared.yaml";
};
services.tailscale = {
enable = true;
package = pkgs.unstable.tailscale;
authKeyFile = config.sops.secrets."tailscale-key".path;
};
}