mirror of
https://github.com/oqyude/nixos.git
synced 2026-08-09 08:03:16 +03:00
3x-ui on server
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
xlib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
navidromeDir = "/var/lib/services/navidrome-point";
|
||||
in
|
||||
{
|
||||
services = {
|
||||
navidrome = {
|
||||
@@ -15,19 +18,19 @@
|
||||
settings = {
|
||||
Address = "0.0.0.0";
|
||||
Port = 4533;
|
||||
MusicFolder = "${xlib.dirs.server-home}/Music";
|
||||
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 = "/home/${xlib.device.username}/.config/beets";
|
||||
# }
|
||||
# ];
|
||||
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}";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user