nix/nixos/hosts/frankfurt-linode-01/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2024-06-23 12:17:22 +02:00
{ lib, modulesPath, hostname, ... }: {
2024-06-23 12:07:50 +02:00
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
../../common/services/tailscale-autoconnect.nix
./firewall.nix
2024-07-07 04:11:15 +02:00
./wireguard.nix
2024-08-20 10:25:45 +02:00
../../common/services/docker.nix
2024-08-12 06:25:09 +02:00
(import ../../common/containers/derp.nix { domainName = "frankfurt.sysctl.io"; })
2024-06-23 12:07:50 +02:00
];
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
# Enable LISH
boot.kernelParams = [ "console=ttyS0,19200n8" ];
boot.loader.grub.extraConfig = ''
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
terminal_input serial;
terminal_output serial
'';
boot.loader.grub.forceInstall = true;
boot.loader.grub.device = "nodev";
boot.loader.timeout = 10;
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
swapDevices = [ { device = "/dev/disk/by-label/linode-swap"; } ];
# Distributed Builds
nix.distributedBuilds = true;
networking.useDHCP = lib.mkDefault true;
2024-06-23 13:09:09 +02:00
time.timeZone = "Europe/Berlin";
2024-06-23 12:17:22 +02:00
networking.hostName = hostname;
2024-06-23 12:07:50 +02:00
services.tailscale.extraUpFlags = [ "--advertise-exit-node" ];
boot.kernel.sysctl = { "net.ipv4.ip_forward" = true; };
}