From 77b5936a0b5d9b8f3b519948c10a17b7bc75849c Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 29 Aug 2022 13:23:25 +0200 Subject: [PATCH] poseidon: remove nuage service Didn't renew the domain name --- hosts/poseidon/default.nix | 4 ---- services/default.nix | 1 - services/nuage.nix | 41 -------------------------------------- 3 files changed, 46 deletions(-) delete mode 100644 services/nuage.nix diff --git a/hosts/poseidon/default.nix b/hosts/poseidon/default.nix index 22590a6..18d1829 100644 --- a/hosts/poseidon/default.nix +++ b/hosts/poseidon/default.nix @@ -106,10 +106,6 @@ in { adminpassFile = config.age.secrets."nextcloud/admin-pass".path; }; - nuage = { - enable = true; - }; - paperless = { enable = true; port = 8085; diff --git a/services/default.nix b/services/default.nix index 6ae5973..e6d6ff3 100644 --- a/services/default.nix +++ b/services/default.nix @@ -13,7 +13,6 @@ ./navidrome.nix ./nextcloud.nix ./nginx.nix - ./nuage.nix ./paperless.nix ./pipewire.nix ./postgresql-backup.nix diff --git a/services/nuage.nix b/services/nuage.nix deleted file mode 100644 index 52bb402..0000000 --- a/services/nuage.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ - config, - lib, - ... -}: let - inherit - (lib) - mkEnableOption - mkIf - ; - - cfg = config.my.services.nuage; - my = config.my; -in { - options.my.services.nuage = { - enable = mkEnableOption "Nuage redirect"; - }; - - config = mkIf cfg.enable { - services.nginx.virtualHosts = { - "stratocumulus.org" = { - forceSSL = true; - enableACME = true; - - locations."/".return = "301 https://petit-nuage.org"; - }; - "petit.stratocumulus.org" = { - forceSSL = true; - enableACME = true; - - locations."/".return = "301 https://petit-nuage.org"; - }; - "gros.stratocumulus.org" = { - forceSSL = true; - enableACME = true; - - locations."/".return = "301 https://gros-nuage.org"; - }; - }; - }; -}