Files
cyper-servers/hosts/cyper-controller/configuration.nix
2026-02-18 21:23:56 +01:00

31 lines
494 B
Nix

{ lib, pkgs, ... }:
{
imports = [
../services/k3s-master.nix
./postgres.nix
#./dns.nix
];
networking = {
hostName = lib.mkForce "cyper-controller";
useDHCP = false;
interfaces.eth0.ipv4.addresses = [
{
address = "192.168.2.2";
prefixLength = 24;
}
];
defaultGateway = "192.168.2.1";
nameservers = [
"127.0.0.1"
"1.1.1.1"
];
};
environment.systemPackages = with pkgs; [
kubectl
dnsutils
];
}