feat: broke up samba file into two

This commit is contained in:
Nick 2025-11-03 02:37:58 -06:00
parent b9cd8c1abb
commit e1f8fedd77
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{
pkgs,
flake,
...
}:
let
inherit (flake.config.services)
instances
;
service = instances.samba;
in
{
# If you ever need to start fresh, you need to add yourself to the Samba users database:
# sudo smbpasswd -a username
services = {
samba = {
# package = pkgs.samba4Full;
enable = true;
openFirewall = true;
settings = {
${instances.jellyfin.name} = {
path = instances.jellyfin.paths.path0;
writable = "true";
};
${instances.audiobookshelf.name} = {
path = instances.audiobookshelf.paths.path0;
writable = "true";
};
${instances.comfyui.name} = {
path = instances.comfyui.paths.path0;
writable = "true";
};
${instances.opencloud.name} = {
path = instances.opencloud.paths.path0;
writable = "true";
};
};
};
};
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
];
};
};
}