feat(quiver): Init module
This commit is contained in:
23
modules/nixos/deertopia/quiver.nix
Normal file
23
modules/nixos/deertopia/quiver.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ 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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user