Navidrome + fix #22

This commit is contained in:
minish 2025-05-13 23:38:08 -04:00
parent b9a6819fb3
commit ad555f489b
Signed by: min
SSH Key Fingerprint: SHA256:mf+pUTmK92Y57BuCjlkBdd82LqztTfDCQIUp0fCKABc
6 changed files with 49 additions and 3 deletions

View File

@ -17,7 +17,7 @@ _: {
"/var/lib/jellyfin" "/var/lib/jellyfin"
"/var/cache/jellyfin" "/var/cache/jellyfin"
"/var/lib/bitwarden_rs" "/var/lib/navidrome"
]; ];
files = [ files = [
"/etc/machine-id" "/etc/machine-id"

View File

@ -2,5 +2,6 @@
imports = [ imports = [
./jellyfin.nix ./jellyfin.nix
./samba.nix ./samba.nix
./navidrome.nix
]; ];
} }

View File

@ -1,8 +1,10 @@
_: { _: {
services.jellyfin = { services.jellyfin = {
enable = true; enable = true;
};
# allow it to access network shares # allow it to access network shares
group = "share"; systemd.services.jellyfin = {
serviceConfig.SupplementaryGroups = ["share"];
}; };
} }

View File

@ -0,0 +1,28 @@
_: {
services.navidrome = {
enable = true;
# ideally i would be able to specify values from a file so i can use secrets,
# but i cant. oh well
settings = {
Address = "10.13.1.1";
Port = 4533;
BaseUrl = "https://aux.min.rip";
MusicFolder = "/terra/terrarium/Media/Music"; # TODO: hardcoding
EnableInsightsCollector = false;
EnableExternalServices = false;
EnableSharing = true;
DefaultTheme = "Catppuccin Macchiato";
UIWelcomeMessage = "hiiii";
};
};
# allow access to network shares
systemd.services.navidrome = {
serviceConfig.SupplementaryGroups = ["share"];
};
}

View File

@ -12,6 +12,7 @@
./vaultwarden.nix ./vaultwarden.nix
./shim-jellyfin.nix ./shim-jellyfin.nix
./wireguard.nix ./wireguard.nix
./shim-navidrome.nix
]; ];
security.acme = { security.acme = {

View File

@ -0,0 +1,14 @@
_: let
httpIntAddr = "10.13.1.1";
httpIntPort = 4533;
dom = "aux.min.rip";
in {
services.nginx.virtualHosts.${dom} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://${httpIntAddr}:${toString httpIntPort}";
};
};
}