2023-05-05 22:33:05 +02:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
|
|
|
|
# To set password:
|
|
|
|
# nix-shell -p samba --run "smbpasswd -a media"
|
|
|
|
custom.samba-share.enable = true;
|
2023-07-03 09:39:14 +02:00
|
|
|
custom.samba-share.enableWSDD = true;
|
|
|
|
custom.samba-share.folders = {
|
|
|
|
music = "/media/music";
|
|
|
|
};
|
2023-05-05 22:33:05 +02:00
|
|
|
custom.samba-share.private = {
|
|
|
|
media = {
|
|
|
|
folder = "/media";
|
|
|
|
users = "media";
|
|
|
|
};
|
|
|
|
temp = {
|
|
|
|
folder = "/srv/tdarr/transcode_cache";
|
|
|
|
users = "media";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users.groups."media".gid = config.ids.gids.transmission;
|
|
|
|
users.users."media" = {
|
|
|
|
uid = config.ids.uids.transmission;
|
2023-06-13 19:58:51 +02:00
|
|
|
useDefaultShell = true;
|
|
|
|
home = "/home/media";
|
|
|
|
createHome = true;
|
2023-05-05 22:33:05 +02:00
|
|
|
group = "media";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.permown."/media" = {
|
|
|
|
owner = "media";
|
|
|
|
group = "media";
|
2023-05-07 02:28:37 +02:00
|
|
|
directory-mode = "770";
|
|
|
|
file-mode = "770";
|
|
|
|
};
|
|
|
|
services.permown."/robi" = {
|
|
|
|
owner = "media";
|
|
|
|
group = "media";
|
|
|
|
directory-mode = "770";
|
|
|
|
file-mode = "770";
|
2023-05-05 22:33:05 +02:00
|
|
|
};
|
|
|
|
}
|