infra/build02/configuration.nix
Jonas Chevalier 37e48b712e
move things around a bit ()
* keep ./services for instances

./profiles is for config-only modules

./services are like profiles, but configure a single instance of a
service. Those are fronted by Nginx as the load-balancer and have a DNS
entry as well.

* ci: build build03 as well

* move hydra to services

* move matterbridge to services

* move marvin-mk2 to services

* build01: share the remainder profiles

* build02: use the nix-community-cache

* fixup kexec

* rename profiles to roles

* README: sync with reality
2021-03-07 16:28:44 +00:00

39 lines
1,022 B
Nix

{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
./nixpkgs-update.nix
../roles/common.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.defaultGateway = "95.217.109.129";
networking.defaultGateway6 = {
address = "fe80::1";
interface = "enp35s0";
};
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
networking.interfaces."enp35s0" = {
ipv4.addresses = [{ address = "95.217.109.189"; prefixLength = 26; }];
ipv6.addresses = [
{ address = "fe80::aaa1:59ff:fe0e:aa61"; prefixLength = 64; }
{ address = "2a01:4f9:4a:2b02::1"; prefixLength = 64; }
];
};
boot.kernelPackages = pkgs.linuxPackages_latest;
system.stateVersion = "20.09";
}