WIP: challenger: init new host

This commit is contained in:
2024-07-01 23:28:24 +02:00
parent f580bef7c1
commit 097ded10b5
7 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{ config, pkgs, ... }:
{
imports =
[
../../base.nix
../../common/metrics-exporters.nix
./hardware-configuration.nix
./exports.nix
./filesystems.nix
];
networking = {
hostName = "challenger";
bridges.br0.interfaces = [ "eno1" ]; # TODO
interfaces.br0.useDHCP = false;
interfaces.br0.ipv4.addresses = [
{ address = "192.168.10.161"; prefixLength = 24; }
];
hostId = "828ab735";
defaultGateway = "192.168.10.1";
};
sops.defaultSopsFile = ../../secrets/challenger/challenger.yaml;
environment.variables = { EDITOR = "vim"; };
environment.systemPackages = with pkgs; [
zfs
];
virtualisation.docker.enable = true;
virtualisation.oci-containers.backend = "docker";
system.stateVersion = "24.05";
}