infra/build02/configuration.nix

35 lines
792 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
./nixpkgs-update.nix
../roles/common.nix
../roles/hetzner-network.nix
../roles/nginx.nix
../roles/nix-community-cache.nix
];
# /boot is a mirror raid
boot.loader.grub.devices = [ "/dev/nvme0n1" "/dev/nvme1n1" ];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
networking.hostName = "nix-community-build02";
networking.hostId = "af9ccc71";
networking.useDHCP = false;
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
networking.nix-community = {
ipv4.address = "95.217.109.189";
ipv4.gateway = "95.217.109.129";
ipv6.address = "2a01:4f9:4a:2b02::1";
};
boot.kernelPackages = pkgs.linuxPackages_latest;
system.stateVersion = "20.09";
}