aboutsummaryrefslogtreecommitdiff
path: root/nixos/hosts/ev/default.nix
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-09-18 06:00:38 +0200
committerMartin Fischer <martin@push-f.com>2025-09-20 14:40:47 +0200
commit21fdce7d65f46c9935f0bf1b9475c8bcd28abf47 (patch)
tree8dd216ddf95eac6b7e780bcce0ddf5e7ae06267b /nixos/hosts/ev/default.nix
parent70b3abe0d6a5e7cf46a8109dce05edcaca892f79 (diff)
feat: generate web index for private web UIs
Diffstat (limited to 'nixos/hosts/ev/default.nix')
-rw-r--r--nixos/hosts/ev/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/hosts/ev/default.nix b/nixos/hosts/ev/default.nix
index b0c5ff3..74518f0 100644
--- a/nixos/hosts/ev/default.nix
+++ b/nixos/hosts/ev/default.nix
@@ -2,10 +2,11 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
-{ config, pkgs, ... }:
+{ config, lib, pkgs, ... }:
let
ports = import ./ports.nix;
+ helpers = import <top/helpers.nix> { inherit config lib pkgs; };
in
{
imports = [
@@ -89,6 +90,11 @@ in
];
networking.firewall.allowedUDPPorts = [];
+ services.nginx = {
+ enable = true;
+ virtualHosts."ev.tailnet" = helpers.serviceIndexHost "ev.tailnet" ports.webUis;
+ };
+
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave