Compare commits
2 commits
de7402576d
...
3381630a7a
| Author | SHA1 | Date | |
|---|---|---|---|
| 3381630a7a | |||
| 5eef477e0b |
3 changed files with 15 additions and 2 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
{ fqdn, shareFqdn, ... }: {
|
{ fqdn, shareFqdn, ... }: {
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /persist/music 755 navidrome navidrome"
|
|
||||||
"d /persist/navidrome 755 navidrome navidrome"
|
"d /persist/navidrome 755 navidrome navidrome"
|
||||||
];
|
];
|
||||||
networking.firewall.allowedTCPPorts = [ 4533 ];
|
networking.firewall.allowedTCPPorts = [ 4533 ];
|
||||||
|
|
@ -17,7 +16,7 @@
|
||||||
ShareURL = "https://${shareFqdn}";
|
ShareURL = "https://${shareFqdn}";
|
||||||
EnableSharing = true;
|
EnableSharing = true;
|
||||||
DataFolder = "/persist/navidrome";
|
DataFolder = "/persist/navidrome";
|
||||||
MusicFolder = "/persist/music";
|
MusicFolder = "/binds/music";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,11 @@
|
||||||
mountPoint = "/persist";
|
mountPoint = "/persist";
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
};
|
};
|
||||||
|
bindMounts."music" = {
|
||||||
|
hostPath = "/persist/media/music";
|
||||||
|
mountPoint = "/binds/music";
|
||||||
|
isReadOnly = true;
|
||||||
|
};
|
||||||
bindMounts."navidrome_env" = {
|
bindMounts."navidrome_env" = {
|
||||||
hostPath = config.age.secrets.navidrome_env.path;
|
hostPath = config.age.secrets.navidrome_env.path;
|
||||||
mountPoint = "/binds/navidrome_env";
|
mountPoint = "/binds/navidrome_env";
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
internalInterfaces = [ "ve-${name}" ];
|
internalInterfaces = [ "ve-${name}" ];
|
||||||
};
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [ 50300 ];
|
||||||
|
|
||||||
services.nginx.virtualHosts."${fqdn}" = {
|
services.nginx.virtualHosts."${fqdn}" = {
|
||||||
useACMEHost = "lava.moe";
|
useACMEHost = "lava.moe";
|
||||||
|
|
@ -58,6 +59,14 @@
|
||||||
config = { imports = modules; };
|
config = { imports = modules; };
|
||||||
specialArgs = { inherit fqdn; };
|
specialArgs = { inherit fqdn; };
|
||||||
|
|
||||||
|
forwardPorts = [
|
||||||
|
{
|
||||||
|
containerPort = 50300;
|
||||||
|
hostPort = 50300;
|
||||||
|
protocol = "tcp";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
bindMounts."persist" = {
|
bindMounts."persist" = {
|
||||||
hostPath = "/persist/containers/${name}";
|
hostPath = "/persist/containers/${name}";
|
||||||
mountPoint = "/persist";
|
mountPoint = "/persist";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue