nixos-config/hosts/challenger/configuration.nix

38 lines
793 B
Nix
Raw Normal View History

2024-07-01 23:28:24 +02:00
{ 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";
}