Files
sydnix/modules/nixos/deertopia/quiver.nix

24 lines
548 B
Nix

{ config, lib, pkgs, sydpkgs, system, ... }:
let cfg = config.sydnix.deertopia.quiver;
in {
options.sydnix.deertopia.quiver = {
enable = lib.mkEnableOption "Quiver, a commutative diagram editor";
};
config = lib.mkIf cfg.enable {
sydnix.deertopia.nginx.vhosts."q".vhost =
let
package = sydpkgs.packages.${system}.quiver;
in {
forceSSL = true;
enableACME = true;
locations."/" = {
extraConfig = ''
root ${package}/opt/quiver;
'';
};
};
};
}