feat(etna): replace subsonic with navidrome
This commit is contained in:
parent
53f908eaf6
commit
a9b7ba0a66
5 changed files with 50 additions and 14 deletions
35
systems/etna/navidrome.nix
Normal file
35
systems/etna/navidrome.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
config,
|
||||
_utils,
|
||||
...
|
||||
}: let
|
||||
cfg = config.services.navidrome;
|
||||
|
||||
env = _utils.setupSingleSecret config "navidromeEnv" {
|
||||
inherit (cfg) group;
|
||||
owner = cfg.user;
|
||||
};
|
||||
in {
|
||||
imports = [env.generate];
|
||||
|
||||
cfTunnels."navidrome.uku3lig.net" = "http://localhost:4533";
|
||||
|
||||
services.navidrome = {
|
||||
enable = true;
|
||||
settings = {
|
||||
Address = "127.0.0.1";
|
||||
Port = 4533;
|
||||
MusicFolder = "/data/subsonic/music";
|
||||
BaseUrl = "https://navidrome.uku3lig.net";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.navidrome.serviceConfig = {
|
||||
EnvironmentFile = env.path;
|
||||
# https://github.com/NixOS/nixpkgs/pull/290901
|
||||
BindReadOnlyPaths = [
|
||||
"/run/systemd/resolve/stub-resolv.conf"
|
||||
"/run/systemd/resolve/resolv.conf"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue