26 lines
569 B
Nix
26 lines
569 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
environment.systemPackages = [
|
|
pkgs.navidrome
|
|
pkgs.nfs-utils
|
|
];
|
|
|
|
boot.supportedFilesystems = [ "nfs" ];
|
|
|
|
services.navidrome = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
settings = {
|
|
Address = "0.0.0.0";
|
|
Port = 4533;
|
|
MusicFolder = "/mnt/share/Jelly/Music";
|
|
EnableSharing = true;
|
|
};
|
|
};
|
|
|
|
fileSystems."/mnt/share" = {
|
|
device = "192.168.1.122:/SSD";
|
|
fsType = "nfs";
|
|
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600"];
|
|
};
|
|
} |