feat(etna): replace subsonic with navidrome
This commit is contained in:
parent
53f908eaf6
commit
a9b7ba0a66
5 changed files with 50 additions and 14 deletions
|
@ -28,7 +28,7 @@ in {
|
|||
./forgejo.nix
|
||||
./shlink.nix
|
||||
./metrics.nix
|
||||
./subsonic.nix
|
||||
./navidrome.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
|
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"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
cfTunnels."subsonic.uku3lig.net" = "http://localhost:4040";
|
||||
|
||||
services.subsonic = {
|
||||
enable = true;
|
||||
port = 4040;
|
||||
maxMemory = 200;
|
||||
|
||||
defaultMusicFolder = "/data/subsonic/music";
|
||||
defaultPlaylistFolder = "/data/subsonic/playlist";
|
||||
defaultPodcastFolder = "/data/subsonic/podcast";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue