diff --git a/pastila/configuration.nix b/pastila/configuration.nix index a27de8a..5605ca8 100644 --- a/pastila/configuration.nix +++ b/pastila/configuration.nix @@ -19,6 +19,7 @@ in ./paste.nix ./smtp.nix ./imap.nix + ./web-misc.nix ]; nixpkgs.overlays = [ diff --git a/pastila/web-misc.nix b/pastila/web-misc.nix new file mode 100644 index 0000000..516e267 --- /dev/null +++ b/pastila/web-misc.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: + +{ + services.nginx.enable = true; + + services.nginx.virtualHosts."armael.gueneau.me" = { + globalRedirect = "gallium.inria.fr/~agueneau"; + }; + + services.nginx.virtualHosts."gueneau.me" = { + globalRedirect = "armael.gueneau.me"; + }; + +} \ No newline at end of file