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