diff options
Diffstat (limited to '')
| -rw-r--r-- | modules/config.nix | 1 | ||||
| -rw-r--r-- | modules/network/default.nix | 6 | ||||
| -rw-r--r-- | modules/search/default.nix | 13 |
3 files changed, 20 insertions, 0 deletions
diff --git a/modules/config.nix b/modules/config.nix index 5ca3cdc..952306f 100644 --- a/modules/config.nix +++ b/modules/config.nix @@ -11,6 +11,7 @@ # ./monitoring ./rss ./calendar + ./search ./packages.nix ]; diff --git a/modules/network/default.nix b/modules/network/default.nix index 25cd5aa..de349e6 100644 --- a/modules/network/default.nix +++ b/modules/network/default.nix @@ -36,9 +36,15 @@ in # "librarian.local" = { inherit host; port = ports.lazylibrarian; }; "paperless.local" = { inherit host; port = ports.paperless; configureNginx = true; }; "calendar.local" = { inherit host; port = ports.caldav; }; + "search.local" = { inherit host; port = ports.search; }; }; }; + # DNS-only mappings + services.bacchus-dns.hosts = { + "smartfridge.local" = settings.network.smartfridgeIP; + }; + # Host mappings defined by service-router services.bacchus-dns = { enable = true; diff --git a/modules/search/default.nix b/modules/search/default.nix new file mode 100644 index 0000000..1663c25 --- /dev/null +++ b/modules/search/default.nix @@ -0,0 +1,13 @@ +{ settings, ... }: +{ + imports = [ ../../services/omnisearch ]; + + services.omnisearch = { + enable = true; + port = settings.network.ports.search; + openFirewall = true; + settings = { + server.domain = "http://search.local"; + }; + }; +} |
