mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2025-02-21 16:22:15 -08:00
added navidrome music management
This commit is contained in:
parent
637905d768
commit
ba8b97e9d0
3 changed files with 50 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
||||||
./modules/home-assistant.nix
|
./modules/home-assistant.nix
|
||||||
./modules/msmtp.nix
|
./modules/msmtp.nix
|
||||||
./modules/mosquitto.nix
|
./modules/mosquitto.nix
|
||||||
|
./modules/navidrome.nix
|
||||||
./modules/nginx.nix
|
./modules/nginx.nix
|
||||||
./modules/nextcloud.nix
|
./modules/nextcloud.nix
|
||||||
./modules/nicks_nextcould_integrations.nix
|
./modules/nicks_nextcould_integrations.nix
|
||||||
|
|
|
@ -29,6 +29,11 @@
|
||||||
type = "A";
|
type = "A";
|
||||||
value = "100.64.0.1";
|
value = "100.64.0.1";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "navidrome.nickiel.net";
|
||||||
|
type = "A";
|
||||||
|
value = "100.64.0.1";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name = "printers.nickiel.net";
|
name = "printers.nickiel.net";
|
||||||
type = "A";
|
type = "A";
|
||||||
|
|
44
hosts/Alaska/modules/navidrome.nix
Normal file
44
hosts/Alaska/modules/navidrome.nix
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{ config, ...}:
|
||||||
|
|
||||||
|
let
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.navidrome = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
Port = 4533;
|
||||||
|
Address = "127.0.0.1";
|
||||||
|
|
||||||
|
Backup.Path = "/Aurora/Navidrome/Data/Backups";
|
||||||
|
Backup.Schedule = "59 23 * * 6";
|
||||||
|
Backup.Count = 2;
|
||||||
|
|
||||||
|
MusicFolder = "/Aurora/Navidrome/Music";
|
||||||
|
DataFolder = "/Aurora/Navidrome/Data";
|
||||||
|
CacheFolder = "/Aurora/Navidrome/Cache";
|
||||||
|
|
||||||
|
ScanSchedule = "@every 24h";
|
||||||
|
TranscodingCacheSize = "150MiB";
|
||||||
|
};
|
||||||
|
user = "navidrome";
|
||||||
|
group = "navidrome";
|
||||||
|
openFirewall = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts = {
|
||||||
|
"navidrome.nickiel.net" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${builtins.toString config.services.navidrome.settings.Port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
extraConfig = ''
|
||||||
|
allow 100.64.0.0/16;
|
||||||
|
allow 127.0.0.1;
|
||||||
|
deny all;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue