mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(utsuho): dnsmasq
This commit is contained in:
parent
0fbd142a16
commit
6ad465e779
17 changed files with 337 additions and 43 deletions
|
|
@ -3,19 +3,18 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.modules) mkIf mkDefault;
|
||||
inherit (lib.lists) head optional;
|
||||
inherit (lib.strings) splitString;
|
||||
inherit (config.services) nginx;
|
||||
access = nginx.access.freepbx;
|
||||
freepbx = config.lib.access.systemFor "freepbx";
|
||||
hasSsl = nginx.virtualHosts.freepbx'ucp.listen'.ucpSsl.enable;
|
||||
in {
|
||||
options.services.nginx.access.freepbx = with lib.types; {
|
||||
host = mkOption {
|
||||
type = str;
|
||||
default = freepbx.access.hostnameForNetwork.local;
|
||||
default = config.lib.access.getHostnameFor "freepbx" "lan";
|
||||
};
|
||||
url = mkOption {
|
||||
type = str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue