clan-infra/modules/flake-module.nix

36 lines
842 B
Nix
Raw Normal View History

2023-07-05 15:19:22 +00:00
{ self, inputs, ... }: {
2023-07-04 14:43:31 +00:00
flake.nixosModules = {
2023-07-05 15:19:22 +00:00
server.imports = [
2023-07-04 14:43:31 +00:00
inputs.srvos.nixosModules.server
2023-07-19 13:45:49 +00:00
inputs.srvos.nixosModules.mixins-telegraf
2023-08-09 09:04:31 +00:00
# FIXME: switch to VPN later
{ networking.firewall.allowedTCPPorts = [ 9273 ]; }
2023-08-30 15:10:52 +00:00
inputs.clan-core.nixosModules.clanCore
2023-09-06 09:21:34 +00:00
./admins.nix
2023-08-30 15:10:52 +00:00
{
# TODO: use buildClan
clanCore.clanDir = "${./..}";
2023-08-30 15:10:52 +00:00
clanCore.machineName = "web01";
}
2023-07-05 15:19:22 +00:00
];
hcloud.imports = [
2023-07-04 14:43:31 +00:00
inputs.srvos.nixosModules.hardware-hetzner-cloud
./single-disk.nix
];
2023-09-05 14:09:51 +00:00
hetzner-ax102.imports = [
inputs.srvos.nixosModules.hardware-hetzner-online-amd
./zfs-crypto-raid.nix
2023-07-17 08:31:59 +00:00
./initrd-networking.nix
];
2023-07-04 14:43:31 +00:00
web01.imports = [
2023-07-05 15:19:22 +00:00
self.nixosModules.server
2023-07-05 15:38:01 +00:00
inputs.srvos.nixosModules.mixins-nginx
2023-07-04 17:40:45 +00:00
./web01
2023-07-04 14:43:31 +00:00
];
};
}