feat(quiver): Init module
This commit is contained in:
37
flake.lock
generated
37
flake.lock
generated
@@ -642,6 +642,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_12": {
|
"nixpkgs_12": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1750386251,
|
||||||
|
"narHash": "sha256-1ovgdmuDYVo5OUC5NzdF+V4zx2uT8RtsgZahxidBTyw=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "076e8c6678d8c54204abcb4b1b14c366835a58bb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_13": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743568003,
|
"lastModified": 1743568003,
|
||||||
"narHash": "sha256-ZID5T65E8ruHqWRcdvZLsczWDOAWIE7om+vQOREwiX0=",
|
"narHash": "sha256-ZID5T65E8ruHqWRcdvZLsczWDOAWIE7om+vQOREwiX0=",
|
||||||
@@ -848,6 +864,7 @@
|
|||||||
"stylix": "stylix",
|
"stylix": "stylix",
|
||||||
"syd-fcitx5-tables": "syd-fcitx5-tables",
|
"syd-fcitx5-tables": "syd-fcitx5-tables",
|
||||||
"sydnix-cli": "sydnix-cli",
|
"sydnix-cli": "sydnix-cli",
|
||||||
|
"sydpkgs": "sydpkgs",
|
||||||
"tf2-nix": "tf2-nix",
|
"tf2-nix": "tf2-nix",
|
||||||
"vpn-confinement": "vpn-confinement"
|
"vpn-confinement": "vpn-confinement"
|
||||||
}
|
}
|
||||||
@@ -938,6 +955,24 @@
|
|||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"sydpkgs": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_12"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1758168482,
|
||||||
|
"narHash": "sha256-4vyBtLPIXbFJWg2saKM+J54/7VOBEn/2wzKavj6ac6I=",
|
||||||
|
"owner": "msyds",
|
||||||
|
"repo": "sydpkgs",
|
||||||
|
"rev": "5802980437ba595967c52cb70e53178718456bf9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "msyds",
|
||||||
|
"repo": "sydpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
@@ -1001,7 +1036,7 @@
|
|||||||
"tf2-nix": {
|
"tf2-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_4",
|
"flake-utils": "flake-utils_4",
|
||||||
"nixpkgs": "nixpkgs_12"
|
"nixpkgs": "nixpkgs_13"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744886451,
|
"lastModified": 1744886451,
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
};
|
};
|
||||||
tf2-nix.url = "gitlab:msyds/tf2-nix";
|
tf2-nix.url = "gitlab:msyds/tf2-nix";
|
||||||
syd-fcitx5-tables.url = "gitlab:msyds/syd-fcitx5-tables";
|
syd-fcitx5-tables.url = "gitlab:msyds/syd-fcitx5-tables";
|
||||||
|
sydpkgs.url = "github:msyds/sydpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs:
|
outputs = { self, nixpkgs, ... }@inputs:
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
|
|
||||||
deertopia = {
|
deertopia = {
|
||||||
authelia.enable = true;
|
authelia.enable = true;
|
||||||
|
quiver.enable = true;
|
||||||
www.enable = true;
|
www.enable = true;
|
||||||
bepasty.enable = true;
|
bepasty.enable = true;
|
||||||
jellyfin.enable = false;
|
jellyfin.enable = false;
|
||||||
|
|||||||
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