dotfiles/modules/nixos/services/samba/sambaEris/default.nix

36 lines
589 B
Nix
Raw Normal View History

2025-11-03 02:37:58 -06:00
{
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 = {
2025-11-09 02:42:22 -06:00
"raid0" = {
path = "/mnt/raid0";
writable = "true";
};
2025-11-03 02:37:58 -06:00
};
};
};
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
];
};
};
}