blob: cd710c31beeb3db5c5eb118dca1b4c2f41670c75 [file] [log] [blame]
Skyler Grey8535cc12023-05-01 21:31:43 +00001{ 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 Greyfe1740c2023-10-21 01:24:18 +00009 comment =
10 "Jellyfin, torrents & tempfiles. Use for large amounts of data that don't necessarily need to be accessed at top speed";
Skyler Grey8535cc12023-05-01 21:31:43 +000011 };
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 Greyfe1740c2023-10-21 01:24:18 +000022 "/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 Grey8535cc12023-05-01 21:31:43 +000026 };
27
Skyler Greyfe1740c2023-10-21 01:24:18 +000028 networking.firewall.allowedTCPPorts = [ 139 445 ];
Skyler Grey8535cc12023-05-01 21:31:43 +000029}