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

53 lines
944 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"
"mail"
2023-09-30 12:37:07 +01:00
"forgejo"
"caldav"
2023-10-27 17:44:32 +01:00
"owncast"
"jellyfin"
2024-02-08 20:21:35 +00:00
"grocy"
#"rss"
2024-05-24 20:07:25 +01:00
"vault-ca"
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";
}