services: tgv: remove service

This commit is contained in:
Antoine Martin 2022-05-08 00:02:37 +02:00
parent cdf5de7658
commit b373a92335
3 changed files with 0 additions and 34 deletions

View file

@ -142,10 +142,6 @@ in {
exitNode = true; exitNode = true;
}; };
tgv = {
enable = true;
};
transmission = { transmission = {
enable = true; enable = true;
username = "alarsyo"; username = "alarsyo";

View file

@ -20,7 +20,6 @@
./postgresql.nix ./postgresql.nix
./restic-backup.nix ./restic-backup.nix
./tailscale.nix ./tailscale.nix
./tgv.nix
./transmission.nix ./transmission.nix
]; ];
} }

View file

@ -1,29 +0,0 @@
{
config,
lib,
...
}: let
inherit
(lib)
mkEnableOption
mkIf
;
cfg = config.my.services.tgv;
my = config.my;
in {
options.my.services.tgv = {
enable = mkEnableOption "TGV redirect";
};
config = mkIf cfg.enable {
services.nginx.virtualHosts = {
"tgv.sexy" = {
forceSSL = true;
enableACME = true;
locations."/".return = "301 http://www.mlgtraffic.net/";
};
};
};
}