Skyler Grey | 8535cc1 | 2023-05-01 21:31:43 +0000 | [diff] [blame^] | 1 | { lib, config, pkgs, ... }: { |
| 2 | services.samba = { |
| 3 | enable = true; |
| 4 | shares = { |
| 5 | HDD = { |
| 6 | path = "/services/kavita/Kavita/drive1"; |
| 7 | browseable = "yes"; |
| 8 | "guest ok" = "no"; |
| 9 | comment = "Jellyfin, torrents & tempfiles. Use for large amounts of data that don't necessarily need to be accessed at top speed"; |
| 10 | }; |
| 11 | SSD = { |
| 12 | path = "/services/kavita/Kavita/drive2"; |
| 13 | browseable = "yes"; |
| 14 | "guest ok" = "no"; |
| 15 | comment = "Manga & LNs. Use for smaller, faster storage"; |
| 16 | }; |
| 17 | }; |
| 18 | }; |
| 19 | |
| 20 | fileSystems = { |
| 21 | "/services/kavita/Kavita/drive1".device = "/dev/disk/by-uuid/dda57e4d-81b7-4f52-b3ac-f14544b3aaf4"; |
| 22 | "/services/kavita/Kavita/drive2".device = "/dev/disk/by-uuid/24d30ffe-91ed-4e41-b40d-f42b02e144a9"; |
| 23 | }; |
| 24 | |
| 25 | networking.firewall.allowedTCPPorts = [ |
| 26 | 139 |
| 27 | 445 |
| 28 | ]; |
| 29 | } |