ark/hosts/wolumonde/default.nix

38 lines
666 B
Nix
Raw Normal View History

2022-07-30 06:54:32 +03:00
{
inputs,
pkgs,
2022-07-30 10:13:13 +03:00
config,
lib,
2022-07-30 06:54:32 +03:00
...
2022-08-11 02:57:40 +03:00
}: {
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;
2022-07-30 04:39:01 +03:00
boot.cleanTmpDir = true;
zramSwap.enable = true;
2022-07-30 06:54:32 +03:00
# firewall stuffs
networking.firewall = {
enable = true;
2022-08-11 02:57:40 +03:00
allowedTCPPorts = [22 80 443];
2022-07-30 10:13:13 +03:00
allowedUDPPortRanges = [];
2022-07-30 06:54:32 +03:00
};
2022-07-30 05:14:17 +03:00
system.stateVersion = "22.05";
2022-07-30 05:03:10 +03:00
}