prefect: share Music and Videos folders via CIFS
Alan Pearce alan@alanpearce.eu
Wed, 25 Nov 2020 17:40:19 +0100
1 files changed, 26 insertions(+), 0 deletions(-)
jump to
M system/prefect.nix → system/prefect.nix
@@ -60,6 +60,32 @@ ''; }; networking.firewall.allowedTCPPorts = [ config.services.postgresql.port ]; + networking.firewall.extraCommands = '' + iptables -A nixos-fw -p udp --source 172.30.44.0/24 -j nixos-fw-accept + iptables -A nixos-fw -p tcp --source 172.30.44.0/24 -j nixos-fw-accept + ip6tables -A nixos-fw -p tcp --source fdbf:4d14:b5de:0::/64 -j nixos-fw-accept + ip6tables -A nixos-fw -p udp --source fdbf:4d14:b5de:0::/64 -j nixos-fw-accept + ''; + + services.samba = { + enable = true; + shares = { + Music = { + path = "/data/Home/Music/"; + browseable = true; + "guest ok" = true; + }; + Videos = { + path = "/data/Home/Videos/"; + browseable = true; + "guest ok" = true; + }; + }; + extraConfig = '' + hide files = desktop.ini + ''; + }; + powerManagement.enable = false; powerManagement.cpuFreqGovernor = "performance"; networking = {