From f8026b6e4c869aa108f6361c8ccd50890657994d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 18 May 2019 10:49:00 +0200 Subject: Move personal websites to modules --- nixops/modules/websites/capitaines/default.nix | 51 --------------------- .../websites/capitaines/mastodon_static/index.html | 29 ------------ .../websites/capitaines/mastodon_static/oops.png | Bin 120305 -> 0 bytes 3 files changed, 80 deletions(-) delete mode 100644 nixops/modules/websites/capitaines/default.nix delete mode 100644 nixops/modules/websites/capitaines/mastodon_static/index.html delete mode 100644 nixops/modules/websites/capitaines/mastodon_static/oops.png (limited to 'nixops/modules/websites/capitaines') diff --git a/nixops/modules/websites/capitaines/default.nix b/nixops/modules/websites/capitaines/default.nix deleted file mode 100644 index 4bbf488..0000000 --- a/nixops/modules/websites/capitaines/default.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ lib, pkgs, config, myconfig, ... }: -let - cfg = config.services.myWebsites.Capitaines; - env = myconfig.env.websites.capitaines; - webappName = "capitaines_mastodon"; - root = "/run/current-system/webapps/${webappName}"; - siteDir = ./mastodon_static; -in { - options.services.myWebsites.Capitaines = { - production = { - enable = lib.mkEnableOption "enable Capitaines's website"; - }; - }; - - config = lib.mkIf cfg.production.enable { - system.extraSystemBuilderCmds = '' - mkdir -p $out/webapps - ln -s ${siteDir} $out/webapps/${webappName} - ''; - - services.websites.production.vhostConfs.capitaines_mastodon = { - certName = "capitaines"; - certMainHost = "mastodon.capitaines.fr"; - hosts = [ "mastodon.capitaines.fr" ]; - root = root; - extraConfig = [ - '' - ErrorDocument 404 /index.html - - DirectoryIndex index.html - Options Indexes FollowSymLinks MultiViews Includes - Require all granted - - '' - ]; - }; - - services.websites.production.vhostConfs.capitaines = { - certName = "capitaines"; - addToCerts = true; - hosts = [ "capitaines.fr" ]; - root = "/run/current-system/webapps/_www"; - extraConfig = [ '' - - DirectoryIndex index.htm - Require all granted - - '' ]; - }; - }; -} diff --git a/nixops/modules/websites/capitaines/mastodon_static/index.html b/nixops/modules/websites/capitaines/mastodon_static/index.html deleted file mode 100644 index fae4152..0000000 --- a/nixops/modules/websites/capitaines/mastodon_static/index.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - This instance is now closed - Mastodon - - - -
- Mastodon -

Sorry, this instance is closed now.

-
- - diff --git a/nixops/modules/websites/capitaines/mastodon_static/oops.png b/nixops/modules/websites/capitaines/mastodon_static/oops.png deleted file mode 100644 index 0abddad..0000000 Binary files a/nixops/modules/websites/capitaines/mastodon_static/oops.png and /dev/null differ -- cgit v1.2.3