navidrome: Add Tailscale auth key
This commit is contained in:
parent
653a9e85c9
commit
54b85e7406
3 changed files with 31 additions and 15 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -9,4 +9,5 @@ in
|
|||
{
|
||||
"nextcloud.age".publicKeys = all;
|
||||
"forgejo-runner-token.age".publicKeys = all;
|
||||
"tailscale.age".publicKeys = all;
|
||||
}
|
||||
|
|
|
|||
BIN
modules/secrets/tailscale.age
Normal file
BIN
modules/secrets/tailscale.age
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue