diff --git a/machine/catacomb/default.nix b/machine/catacomb/default.nix index abfa293..7076f21 100644 --- a/machine/catacomb/default.nix +++ b/machine/catacomb/default.nix @@ -4,6 +4,7 @@ imports = [ ./hardware-configuration.nix ./fileserver.nix + ./mirror.nix ]; beatific.hostName = "catacomb"; diff --git a/machine/catacomb/mirror.nix b/machine/catacomb/mirror.nix new file mode 100644 index 0000000..6d9b161 --- /dev/null +++ b/machine/catacomb/mirror.nix @@ -0,0 +1,14 @@ +{ ... }: + +{ + # Configure nginx to serve /nas/doc/website/mirror/ + services.nginx = { + enable = true; + virtualHosts."mirror.catacomb.home" = { + listen = [ { addr = "10.22.20.2"; } ]; + root = "/nas/doc/website/mirror"; + }; + }; + + users.users.nginx.extraGroups = ["nas"]; +} diff --git a/modules/beatific.nix b/modules/beatific.nix index d4a758c..d6623cd 100644 --- a/modules/beatific.nix +++ b/modules/beatific.nix @@ -219,6 +219,7 @@ in { ]; "10.22.20.2" = [ "catacomb.home" + "mirror.catacomb.home" ]; "10.22.20.3" = [ "palamas.home"