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

@ -52,6 +52,7 @@
"modules/services/trilium"
"modules/services/fail2ban"
"modules/services/ntfy-sh"
"modules/services/mesh/client.nix"
"modules/services/ollama/proxy.nix" # Just host the proxy path back to Parzival
"modules/services/netbox"
"modules/services/matrix"

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;
};
}