Add barebone server "alto"

This commit is contained in:
SebastianStork 2025-03-27 23:43:54 +01:00
parent 1addecdfb2
commit 7aed295543
7 changed files with 155 additions and 5 deletions

43
hosts/alto/hardware.nix Normal file
View file

@ -0,0 +1,43 @@
{ modulesPath, inputs, ... }:
{
imports = [
inputs.disko.nixosModules.default
"${modulesPath}/profiles/qemu-guest.nix"
];
nixpkgs.hostPlatform = "x86_64-linux";
boot.initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"
"virtio_pci"
"sr_mod"
"virtio_blk"
];
zramSwap.enable = true;
networking.useDHCP = false;
systemd.network = {
enable = true;
networks."10-ens3" = {
matchConfig.Name = "ens3";
address = [
"152.53.85.193/22"
"2a0a:4cc0:c0:23bd::/64"
];
routes = [
{ Gateway = "152.53.84.1"; }
{ Gateway = "fe80::1"; }
];
dns = [
"46.38.225.230"
"46.38.252.230"
"2a03:4000:0:1::e1e6"
"2a03:4000:8000::fce6"
];
linkConfig.RequiredForOnline = "routable";
};
};
services.resolved.enable = true;
}