Init
This commit is contained in:
30
hosts/cyper-controller/configuration.nix
Normal file
30
hosts/cyper-controller/configuration.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ 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
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user