{ services.getty.autologinUser = "root"; services.asterisk = { enable = true; extraConfig = builtins.readFile ./asterisk/asterisk.conf; confFiles = builtins.listToAttrs ( builtins.map (name: { name = name; value = builtins.readFile (./asterisk + "/${name}"); }) (builtins.filter (n: n != "asterisk.conf") (builtins.attrNames (builtins.readDir ./asterisk))) ); }; virtualisation.forwardPorts = [ { from = "host"; host.port = 5060; guest.port = 5060; } { from = "host"; host.port = 4569; guest.port = 4569; } ]; networking.firewall = { allowedTCPPorts = [ 5060 ]; allowedUDPPorts = [ 5060 4569 ]; }; boot.kernelParams = [ "console=ttyS0" ]; system.stateVersion = "25.11"; }