2022-12-04 16:10:00 +00:00
|
|
|
{tree, ...}: {
|
2021-12-28 15:09:51 +00:00
|
|
|
imports = with tree; [
|
2021-12-28 22:59:28 +00:00
|
|
|
users.root
|
2021-12-28 21:42:46 +00:00
|
|
|
|
2022-11-17 12:06:16 +00:00
|
|
|
hosts.hetzner-vm.modules.mailserver
|
2022-12-03 13:16:22 +00:00
|
|
|
hosts.hetzner-vm.modules.piped
|
2022-11-17 12:06:16 +00:00
|
|
|
|
2021-12-29 16:21:53 +00:00
|
|
|
profiles.base
|
2021-12-28 15:09:51 +00:00
|
|
|
profiles.sshd
|
2022-11-02 10:24:47 +00:00
|
|
|
profiles.nginx
|
2022-11-02 11:32:03 +00:00
|
|
|
profiles.nix-gc
|
2021-12-28 21:42:46 +00:00
|
|
|
|
2022-12-15 14:33:39 +00:00
|
|
|
./containers/storage/storage.nix
|
2022-12-20 15:28:31 +00:00
|
|
|
./containers/matrix/matrix.nix
|
2022-12-24 17:16:39 +00:00
|
|
|
./containers/music/music.nix
|
2022-12-15 14:33:39 +00:00
|
|
|
|
2022-11-17 12:06:16 +00:00
|
|
|
hosts.hetzner-vm.profiles.restic
|
2022-12-03 13:16:22 +00:00
|
|
|
hosts.hetzner-vm.profiles.piped
|
2022-11-17 12:06:16 +00:00
|
|
|
hosts.hetzner-vm.profiles.quassel
|
|
|
|
hosts.hetzner-vm.profiles.mailserver
|
|
|
|
hosts.hetzner-vm.profiles.gitlab-static-sites
|
|
|
|
hosts.hetzner-vm.profiles.misskey
|
|
|
|
hosts.hetzner-vm.profiles.wireguard
|
2023-05-25 13:41:20 +01:00
|
|
|
hosts.hetzner-vm.profiles.nginx-misc
|
2021-12-28 21:42:46 +00:00
|
|
|
|
2022-11-02 11:32:03 +00:00
|
|
|
./networking.nix
|
|
|
|
./hardware.nix
|
2022-11-02 12:24:55 +00:00
|
|
|
./secrets.nix
|
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";
|
|
|
|
};
|
|
|
|
|
2022-12-04 13:45:43 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [80 443];
|
2022-12-15 14:58:34 +00:00
|
|
|
networking.firewall.allowedUDPPorts = [443];
|
2022-11-02 10:24:47 +00:00
|
|
|
|
2022-01-03 16:50:22 +00:00
|
|
|
home-manager.users.root = {
|
2022-12-04 13:45:43 +00:00
|
|
|
imports = with tree; [home.base home.dev.small];
|
2022-06-22 15:51:22 +01:00
|
|
|
home.stateVersion = "22.05";
|
2022-01-03 16:50:22 +00:00
|
|
|
};
|
2022-05-09 09:03:00 +01:00
|
|
|
|
2021-12-28 15:09:51 +00:00
|
|
|
networking.hostName = "hetzner-vm";
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
|
2022-11-23 15:58:12 +00:00
|
|
|
system.stateVersion = "22.05";
|
2021-12-28 15:09:51 +00:00
|
|
|
}
|