ark/hosts/wolumonde/default.nix

29 lines
480 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
2022-08-14 06:17:15 +03:00
b = builtins;
modules = toString ./modules;
files = b.readDir modules;
2022-08-11 02:57:40 +03:00
filesToImport =
2022-08-14 06:17:15 +03:00
b.map (name: "${modules}/${name}") (b.attrNames files);
2022-08-11 02:57:40 +03:00
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
}