nixfiles/hosts/hetzner-arm/hetzner-arm.nix

48 lines
869 B
Nix
Raw Normal View History

2023-09-20 18:44:24 +01:00
{
tree,
lib,
...
}: let
inherit (lib.lists) forEach;
in {
imports = with tree;
[
presets.nixos.serverBase
presets.nixos.serverHetzner
presets.nixos.serverEncryptedDrive
profiles.nginx
profiles.firewallAllow.httpCommon
2023-09-20 18:44:24 +01:00
profiles.chaosInternalWireGuard
2023-09-20 18:44:24 +01:00
./hardware.nix
./secrets.nix
]
++ (forEach [
"social"
"storage"
"music"
"quassel"
"postgresql"
"piped-fi"
"mail"
2023-09-30 12:37:07 +01:00
"forgejo"
2023-09-20 18:44:24 +01:00
] (name: ./containers + "/${name}"))
++ (with hosts.hetzner-arm.profiles; [
staticSites
2023-09-20 18:44:24 +01:00
]);
# For Containers
networking.nat = {
enable = true;
internalInterfaces = ["ve-+"];
externalInterface = "enp1s0";
};
networking.hostName = "hetzner-arm";
home-manager.users.root.home.stateVersion = "23.05";
system.stateVersion = "23.05";
}