61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{ ... }: {
|
|
imports = [
|
|
./hardware.nix
|
|
./disko.nix
|
|
../../modules/vm-guest.nix
|
|
../../modules/voip
|
|
];
|
|
|
|
networking.hostName = "telefonmann";
|
|
|
|
networking.interfaces.ens19 = {
|
|
ipv4.addresses = [{
|
|
address = "10.0.10.2";
|
|
prefixLength = 24;
|
|
}];
|
|
};
|
|
|
|
services.voip = {
|
|
enable = true;
|
|
serverAddress = "10.0.10.2";
|
|
ntpServer = "10.0.10.1";
|
|
|
|
phones = {
|
|
"e0899d946ccc" = {
|
|
model = "cisco-8961";
|
|
extension = "100";
|
|
label = "Küchentelefon";
|
|
password = "changeme100";
|
|
voicemailTimeout = 10;
|
|
};
|
|
"e0899d947650" = {
|
|
model = "cisco-8961";
|
|
extension = "102";
|
|
label = "Flur";
|
|
password = "changeme100";
|
|
voicemailTimeout = 10;
|
|
};
|
|
"101" = {
|
|
model = "sip-client";
|
|
extension = "101";
|
|
password = "changeme101";
|
|
};
|
|
};
|
|
|
|
backgroundImages = {
|
|
"Wombel" = ./backgrounds/wombel.png;
|
|
};
|
|
|
|
intercomPrefix = "*80";
|
|
|
|
extensions = {
|
|
"100" = { displayName = "Küche"; };
|
|
"101" = { displayName = "101"; };
|
|
"102" = { displayName = "Flur"; };
|
|
"*99" = { mode = "page"; displayName = "Durchsage an alle"; };
|
|
"999" = { mode = "app"; app = "Playback(hello-world)"; };
|
|
};
|
|
};
|
|
|
|
deployment.targetHost = "telefonmann"; # or IP address
|
|
}
|