mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
45 lines
900 B
Nix
45 lines
900 B
Nix
|
|
{
|
||
|
|
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";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
networking = {
|
||
|
|
firewall = {
|
||
|
|
allowedTCPPorts = [
|
||
|
|
service.ports.port0
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|