Configure basic yate host
This commit is contained in:
parent
46e43e51aa
commit
ef1710b09f
10
config/hosts/yate/configuration.nix
Normal file
10
config/hosts/yate/configuration.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
networking = {
|
||||||
|
hostName = "yate";
|
||||||
|
domain = "z9.ccchh.net";
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "23.11";
|
||||||
|
}
|
9
config/hosts/yate/default.nix
Normal file
9
config/hosts/yate/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./configuration.nix
|
||||||
|
./networking.nix
|
||||||
|
./yate.nix
|
||||||
|
];
|
||||||
|
}
|
23
config/hosts/yate/networking.nix
Normal file
23
config/hosts/yate/networking.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
10
config/hosts/yate/yate.nix
Normal file
10
config/hosts/yate/yate.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.yate
|
||||||
|
];
|
||||||
|
|
||||||
|
# Just disable it for now.
|
||||||
|
networking.firewall.enable = false;
|
||||||
|
}
|
Loading…
Reference in a new issue