Configure basic yate host

This commit is contained in:
June 2024-06-08 20:18:59 +02:00
parent 46e43e51aa
commit ef1710b09f
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
5 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
networking = {
hostName = "yate";
domain = "z9.ccchh.net";
};
system.stateVersion = "23.11";
}

View file

@ -0,0 +1,9 @@
{ config, pkgs, ... }:
{
imports = [
./configuration.nix
./networking.nix
./yate.nix
];
}

View file

@ -0,0 +1,23 @@
{ config, pkgs, ... }:
{
networking = {
interfaces.net0 = {
ipv4.addresses = [
{
address = "10.31.208.12";
prefixLength = 23;
}
];
};
defaultGateway = "10.31.208.1";
nameservers = [
"10.31.210.1"
];
};
systemd.network.links."10-net0" = {
matchConfig.MACAddress = "BC:24:11:73:3E:F7";
linkConfig.Name = "net0";
};
}

View file

@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
environment.systemPackages = [
pkgs.yate
];
# Just disable it for now.
networking.firewall.enable = false;
}

View file

@ -186,6 +186,15 @@
./config/hosts/nix-box-june ./config/hosts/nix-box-june
]; ];
}; };
yate = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./config/common
./config/proxmox-vm
./config/hosts/yate
];
};
}; };
packages.x86_64-linux = { packages.x86_64-linux = {