X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Fcapitaines%2Fdefault.nix;fp=nixops%2Fmodules%2Fwebsites%2Fcapitaines%2Fdefault.nix;h=0000000000000000000000000000000000000000;hb=f8026b6e4c869aa108f6361c8ccd50890657994d;hp=4bbf48806e73501779fe5dafe422273d816ca6f4;hpb=4aac110f17f0528d90510eec00c9a8df60bcf04f;p=perso%2FImmae%2FConfig%2FNix.git
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
-
- '' ];
- };
- };
-}