mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 01:34:08 -05:00
autoprovision tailscale
This commit is contained in:
parent
d100182228
commit
5213ecc447
2 changed files with 13 additions and 1 deletions
|
|
@ -52,6 +52,7 @@
|
||||||
"modules/services/trilium"
|
"modules/services/trilium"
|
||||||
"modules/services/fail2ban"
|
"modules/services/fail2ban"
|
||||||
"modules/services/ntfy-sh"
|
"modules/services/ntfy-sh"
|
||||||
|
"modules/services/mesh/client.nix"
|
||||||
"modules/services/ollama/proxy.nix" # Just host the proxy path back to Parzival
|
"modules/services/ollama/proxy.nix" # Just host the proxy path back to Parzival
|
||||||
"modules/services/netbox"
|
"modules/services/netbox"
|
||||||
"modules/services/matrix"
|
"modules/services/matrix"
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.unstable.tailscale;
|
package = pkgs.unstable.tailscale;
|
||||||
|
authKeyFile = config.sops.secrets."tailscale-key".path;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue