Navidrome + fix #22
This commit is contained in:
parent
b9a6819fb3
commit
ad555f489b
|
@ -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"
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./samba.nix
|
./samba.nix
|
||||||
|
./navidrome.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"];
|
||||||
|
};
|
||||||
|
}
|
|
@ -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 = {
|
||||||
|
|
|
@ -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}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue