navidrome: Add Tailscale auth key

This commit is contained in:
Jan Kremer 2025-12-27 10:15:04 +01:00
parent 653a9e85c9
commit 54b85e7406
Signed by: jan
GPG key ID: A7DA689CB3B078EC
3 changed files with 31 additions and 15 deletions

View file

@ -1,3 +1,4 @@
{ inputs, ... }:
{
containers.music = {
autoStart = true;
@ -8,7 +9,20 @@
};
};
config = {
config =
{ config, ... }:
{
imports = [ inputs.agenix.nixosModules.default ];
age = {
identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
secrets."tailscale" = {
file = ../secrets/tailscale.age;
mode = "400";
owner = "tailscale";
};
};
services = {
navidrome = {
enable = true;
@ -22,6 +36,7 @@
enable = true;
useRoutingFeatures = "server";
interfaceName = "userspace-networking";
authKeyFile = config.age.secrets.tailscale.path;
};
};

View file

@ -9,4 +9,5 @@ in
{
"nextcloud.age".publicKeys = all;
"forgejo-runner-token.age".publicKeys = all;
"tailscale.age".publicKeys = all;
}

Binary file not shown.