nixfiles/hosts/hetzner-vm/hetzner-vm.nix

47 lines
836 B
Nix
Raw Normal View History

{
tree,
lib,
...
2023-09-18 03:56:58 +01:00
}: let
inherit (lib.lists) forEach;
in {
imports = with tree;
[
2023-09-18 03:56:58 +01:00
presets.nixos.serverBase
presets.nixos.serverHetzner
profiles.nginx
2023-09-18 03:56:58 +01:00
profiles.firewallAllow.httpCommon
2023-09-14 19:44:27 +01:00
profiles.cross.arm64
2023-09-18 03:56:58 +01:00
profiles.chaosInternalWireGuard
2021-12-28 21:42:46 +00:00
./hardware.nix
./secrets.nix
]
2023-09-18 03:56:58 +01:00
++ (forEach [
"social"
"storage"
"music"
"quassel"
2023-09-19 17:53:44 +01:00
"piped-fi"
"mail"
] (name: ./containers + "/${name}"))
++ (with hosts.hetzner-vm.profiles; [
2023-09-18 03:56:58 +01:00
vaultUI
gitlabStaticSites
]);
2021-12-28 15:09:51 +00:00
2022-12-20 15:28:31 +00:00
# For Containers
networking.nat = {
enable = true;
internalInterfaces = ["ve-+"];
externalInterface = "eth0";
};
2021-12-28 15:09:51 +00:00
networking.hostName = "hetzner-vm";
2023-09-18 03:56:58 +01:00
home-manager.users.root.home.stateVersion = "23.05";
system.stateVersion = "23.05";
2021-12-28 15:09:51 +00:00
}