diff --git a/modules/web/notenrechner.nix b/modules/web/notenrechner.nix index a6da3c1..06d4d05 100644 --- a/modules/web/notenrechner.nix +++ b/modules/web/notenrechner.nix @@ -1,6 +1,8 @@ -{ config, specialArgs, ... }: let +{ config, specialArgs, ... }: +let domain = "notenrechner.${config.networking.domain}"; -in { +in +{ services.nginx.virtualHosts."${domain}" = { root = specialArgs.notenrechner.packages."x86_64-linux".default; }; diff --git a/modules/web/sharepic.nix b/modules/web/sharepic.nix index 8b97cc8..521d297 100644 --- a/modules/web/sharepic.nix +++ b/modules/web/sharepic.nix @@ -5,10 +5,10 @@ in { services.nginx.virtualHosts."${domain}" = { root = pkgs.fetchFromGitHub { - owner = "jannikmenzel"; - repo = "iFSR-Sharepicgenerator"; - rev = "ac721d5fff2dba1f046939a6d6532b1a8cfceba8"; - hash = "sha256-of+N58TDt2BcbDVEriKn6rjQVl0GdV4ZMEblrdUutZk="; - }; + owner = "jannikmenzel"; + repo = "iFSR-Sharepicgenerator"; + rev = "ac721d5fff2dba1f046939a6d6532b1a8cfceba8"; + hash = "sha256-of+N58TDt2BcbDVEriKn6rjQVl0GdV4ZMEblrdUutZk="; + }; }; }