dotfiles/modules/nixos/homelab/samba/default.nix
2025-12-09 03:46:57 -06:00

26 lines
404 B
Nix
Executable file

let
importList =
let
content = builtins.readDir ./.;
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
in
map (name: ./. + "/${name}") dirContent;
in
{
imports = importList;
services = {
samba = {
enable = true;
};
};
networking = {
firewall = {
allowedTCPPorts = [
445
];
};
};
}