diff options
Diffstat (limited to 'machines/labnet/labtops.nix')
-rw-r--r-- | machines/labnet/labtops.nix | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/machines/labnet/labtops.nix b/machines/labnet/labtops.nix index 29ea5507..f8393b34 100644 --- a/machines/labnet/labtops.nix +++ b/machines/labnet/labtops.nix @@ -15,7 +15,8 @@ }; hannswurscht = { pkgs, ... }: - let musicDir = "/data/music"; in + let musicDir = "/data/music"; + webserverRootDir = "/var/www"; in { vuizvui.user.openlab.base.enable = true; @@ -46,8 +47,20 @@ enable = true; volume = 40; }; - vuizvui.user.openlab.speedtest.enable = true; + vuizvui.user.openlab.speedtest = { + enable = true; + outputPath = "${webserverRootDir}/speedtest.yaml"; + }; + + services.nginx = { + enable = true; + virtualHosts."hannswurscht.openlab.lan" = { + default = true; + root = webserverRootDir; + }; + }; + # machine mostly runs headless with the screen shut services.logind.extraConfig = "HandleLidSwitch=ignore"; fileSystems = { |