ark/hosts/wolumonde/default.nix
2022-08-11 02:57:40 +03:00

38 lines
666 B
Nix

{
inputs,
pkgs,
config,
lib,
...
}: {
imports = let
files =
lib.filterAttrs
(name: type: type == "regular" && name != "default.nix")
(builtins.readDir (toString ./.));
filesToImport =
builtins.map
(
name:
builtins.path {
inherit name;
path = "${toString ./.}/${name}";
}
)
(builtins.attrNames files);
in
filesToImport;
boot.cleanTmpDir = true;
zramSwap.enable = true;
# firewall stuffs
networking.firewall = {
enable = true;
allowedTCPPorts = [22 80 443];
allowedUDPPortRanges = [];
};
system.stateVersion = "22.05";
}