diff --git a/machines/gerd.nix b/machines/gerd.nix index 527471c..435ab99 100644 --- a/machines/gerd.nix +++ b/machines/gerd.nix @@ -12,6 +12,7 @@ in { ./gerd/services/lldap.nix # ./gerd/services/authelia.nix + ./gerd/services/fricloud-website.nix ./gerd/services/forgejo.nix ./gerd/services/teeworlds.nix ./gerd/services/murmur.nix diff --git a/machines/gerd/services/fricloud-website.nix b/machines/gerd/services/fricloud-website.nix new file mode 100644 index 0000000..9f79ada --- /dev/null +++ b/machines/gerd/services/fricloud-website.nix @@ -0,0 +1,27 @@ +{ config, pkgs, ... }: + +{ + services.nginx.virtualHosts."fricloud.dk" = { + forceSSL = true; + enableACME = true; + root = pkgs.writeTextDir "index.html" '' + + + Fricloud.dk + + + + Under Construction + + + + ''; + }; + + # setup group for fricloud.dk cert + add nginx to group. + # group `fricloud-domain` is used for users that need access to the domain certificate, e.g. murmur + security.acme.certs."fricloud.dk".group = config.users.groups.fricloud-domain.name; + users.groups.fricloud-domain.members = [ config.users.users.nginx.name ]; +}