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
+2
View File
@@ -67,7 +67,9 @@
./desktop/kde.nix ./desktop/kde.nix
./home/yaroslav/steam.nix ./home/yaroslav/steam.nix
./hosts/generic/teamspeak.nix ./hosts/generic/teamspeak.nix
./hosts/Aphelion/nfs.nix
# ./hosts/generic/zapret.nix # ./hosts/generic/zapret.nix
./hosts/Aphelion/dlna.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
+1
View File
@@ -7,6 +7,7 @@
enable = true; enable = true;
settings = { settings = {
background_opacity = 0.6; background_opacity = 0.6;
font_size = 10;
}; };
}; };
+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"; { device = "aphelion-zroot/home";
fsType = "zfs"; 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 = [ ]; swapDevices = [ ];
+1 -2
View File
@@ -2,8 +2,7 @@
{ {
services.nfs.server.enable = true; services.nfs.server.enable = true;
services.nfs.server.exports = '' services.nfs.server.exports = ''
/share 192.168.1.0/24(rw) /Volumes/Trash 192.168.1.0/24(rw)
/share/nixos-1 192.168.1.0/24(rw)
''; '';
networking.firewall.allowedTCPPorts = [ 2049 ]; networking.firewall.allowedTCPPorts = [ 2049 ];
} }