added dlna for aphelion

This commit is contained in:
yaroslav
2025-07-30 00:56:24 +03:00
parent b51818d19d
commit e704a8f8bc
5 changed files with 27 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
{ ... }:
{
services.minidlna = {
enable = true;
settings = {
media_dir = [
"/Volumes/Trash/Music"
"/Volumes/Trash/Movies"
];
};
openFirewall = true;
};
}
+10
View File
@@ -35,6 +35,16 @@
{ device = "aphelion-zroot/home";
fsType = "zfs";
};
fileSystems."/home/yaroslav/.local/share/Steam"=
{ device = "aphelion-zroot/data/steam";
fsType = "zfs";
};
fileSystems."/Volumes/Trash" =
{
device = "/dev/yarikpc/trash";
fsType = "ext4";
options = [ "x-mount.mkdir" "rw" ];
};
swapDevices = [ ];
+1 -2
View File
@@ -2,8 +2,7 @@
{
services.nfs.server.enable = true;
services.nfs.server.exports = ''
/share 192.168.1.0/24(rw)
/share/nixos-1 192.168.1.0/24(rw)
/Volumes/Trash 192.168.1.0/24(rw)
'';
networking.firewall.allowedTCPPorts = [ 2049 ];
}