mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
32 lines
574 B
Nix
32 lines
574 B
Nix
![]() |
{
|
||
|
pkgs,
|
||
|
flake,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (flake.config.service.instance) samba jellyfin;
|
||
|
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 = {
|
||
|
media = {
|
||
|
path = jellyfin.paths.path0;
|
||
|
writable = "true";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
networking = {
|
||
|
firewall = {
|
||
|
allowedTCPPorts = [
|
||
|
samba.ports.port0
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|