hosts/aluminium: add fieldpoc
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
|
||||
./fieldpoc.nix
|
||||
];
|
||||
|
||||
boot.kernelParams = [ "console=ttyS0,115200n8" ];
|
||||
|
32
hosts/aluminium/fieldpoc.nix
Normal file
32
hosts/aluminium/fieldpoc.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
networking.interfaces.enp3s0.ipv4.addresses = [ { address = "10.42.132.1"; prefixLength = 24; } ];
|
||||
networking.firewall.trustedInterfaces = [ "enp3s0" ];
|
||||
|
||||
services.fieldpoc = {
|
||||
enable = true;
|
||||
ommIp = "10.42.132.2";
|
||||
ommUser = "omm";
|
||||
ommPasswordPath = config.age.secrets.fieldpoc-ommpassword.path;
|
||||
sipsecretPath = config.age.secrets.fieldpoc-sipsecret.path;
|
||||
dhcp = {
|
||||
enable = true;
|
||||
interface = "enp3s0";
|
||||
subnet = "10.42.132.0/24";
|
||||
pool = "10.42.132.200 - 10.42.132.250";
|
||||
router = "10.42.132.1";
|
||||
dnsServers = "10.42.10.8";
|
||||
omm = "10.42.132.2";
|
||||
reservations = [
|
||||
{
|
||||
name = "omm";
|
||||
macAddress = "00:30:42:1b:8c:7c";
|
||||
ipAddress = "10.42.132.2";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
10
hosts/aluminium/secrets/fieldpoc-ommpassword.age
Normal file
10
hosts/aluminium/secrets/fieldpoc-ommpassword.age
Normal file
@@ -0,0 +1,10 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 HwR33w dvnkhXiz/AAZa3xT6RDx8OIQnBihgUiBddXtVB85JTA
|
||||
NqFXVizLIgp08r41jP1myZ/sfOcHYRk7qvPrRjH0KUA
|
||||
-> ssh-ed25519 GUpvaA X5Nhz0ppW4smw1cVZ0xPwcgcCREpcF4OHIjgwelm6Eo
|
||||
N3rA06TZIEOgXGROcTUHlGSN4jpisGbMXX3WnHoIKek
|
||||
-> }zICz2Kn-grease ;yh
|
||||
NSFTNcxuAeDoIHy7HqGJn6FD7t3admS1EiIlVuPvcY0X8lqUKACMAym8GcCd2vrQ
|
||||
VF1NK0BsKgW1j6uUFASqBn5/us2Nx6/mwxdaX4QBGINlkas+/zN53bM
|
||||
--- e+nEDx4JO9clhnhTKZLeTuUdfRSHNJS+kY2UA46j8CM
|
||||
<EFBFBD>H>9<>㱡<EFBFBD><E3B1A1><0F><>(P<>l<EFBFBD><6C><EFBFBD><0F>k<EFBFBD>?Cڏ<0F>,x<>}<7D>W<EFBFBD><57>?a*<2A>
|
11
hosts/aluminium/secrets/fieldpoc-sipsecret.age
Normal file
11
hosts/aluminium/secrets/fieldpoc-sipsecret.age
Normal file
@@ -0,0 +1,11 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 HwR33w IXd1561I7Ia8Vr1nlqcMCMN9xF0LXlpXPJUIW102UBI
|
||||
KFpKJdE6ge2yE+kp1pYcHnmn3th0m0X2iETZ8rFze48
|
||||
-> ssh-ed25519 GUpvaA VyC2gxp7m7uz9ba1qmjQ05Cbi1ZXpkCU9ydwpYMAlyw
|
||||
LC3flGQhaBdl8LeJnG5HbEBXcmEbDarWqZ/XFGhUAoI
|
||||
-> _7e:/rX-grease ~R' V
|
||||
KlOMxJRircN7onkmcF3Omw8Nseg0kgx9CsqdRsWV9jVV8+aY/4SFRC2cllIDOIQa
|
||||
71hNmC6LqcOW
|
||||
--- zr22gxWcsyuMcUg3gXiIUPvbsV/dE2hRvWD+e6i1B98
|
||||
<EFBFBD><19><1A>1<EFBFBD>("<22><>Sb/<2F>Q<<3C>*n<>I<EFBFBD><49>$Ig<06>f<EFBFBD><1D>X<EFBFBD>݆<EFBFBD><EFBFBD><7F><>
|
||||
<EFBFBD>
|
Reference in New Issue
Block a user