mirror of
https://github.com/oqyude/nixos.git
synced 2026-08-09 08:03:16 +03:00
37 lines
654 B
Nix
37 lines
654 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
xlib,
|
|
...
|
|
}:
|
|
let
|
|
navidromeDir = "/var/lib/services/navidrome-point";
|
|
in
|
|
{
|
|
services = {
|
|
navidrome = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
# environmentFile = "";
|
|
settings = {
|
|
Address = "0.0.0.0";
|
|
Port = 4533;
|
|
MusicFolder = "${navidromeDir}";
|
|
};
|
|
};
|
|
};
|
|
systemd.mounts = [
|
|
{
|
|
enable = true;
|
|
options = "bind,x-systemd.automount,nofail";
|
|
requires = [ "local-fs.target" ];
|
|
type = "none";
|
|
wantedBy = [ "multi-user.target" ];
|
|
what = "${xlib.dirs.server-home}/Music";
|
|
where = "${navidromeDir}";
|
|
}
|
|
];
|
|
}
|