mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-14 02:20:53 -06:00
26 lines
404 B
Nix
Executable file
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
|
|
];
|
|
};
|
|
};
|
|
|
|
}
|