server-configs/machines/gerd.nix

44 lines
886 B
Nix

{ modulesPath, config, lib, pkgs, ... }:
let
sources = import ./../shared/sources/sources.nix;
in {
imports = [
./../shared
./../shared/applications/server/nginx.nix
./../shared/applications/state/ssh.nix
./gerd/services/forgejo.nix
./gerd/services/teeworlds.nix
];
networking.hostName = "gerd";
networking.hostId = "e1166ac9";
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
};
mine = {
state.enable = true;
disks = {
disk = "/dev/sda";
pools.rpool.datasets = {
"safe/svcs/forgejo" = { mountpoint = "/srv/forgejo"; extra.options.quota = "5G"; };
};
};
ssh-on-boot.enable = true;
platforms.hetzner = {
enable = true;
network.address = [
"65.108.221.240/32"
"2a01:4f9:c012:743e::1/64"
];
};
};
system.stateVersion = "24.05";
}