Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions npins/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@
"url": "https://github.com/nix-community/impermanence/archive/4b3e914cdf97a5b536a889e939fb2fd2b043a170.tar.gz",
"hash": "sha256-LJggUHbpyeDvNagTUrdhe/pRVp4pnS6wVKALS782gRI="
},
"kavita": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "kareadita",
"repo": "kavita"
},
"branch": "feature/new-login",
"submodules": false,
"revision": "6d410baa72b9daa2d10527fd02903209ca4ba58b",
"url": "https://github.com/kareadita/kavita/archive/6d410baa72b9daa2d10527fd02903209ca4ba58b.tar.gz",
"hash": "sha256-hY2z1YP0nl4CbQBMjCywcWkj40s6UqL9Kb2r8T9mmEM=",
"frozen": true
},
"lix": {
"type": "Git",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
./beancount-beancount_share
./beancount-smart_importer
./collabora-gtimelog
./kavita
./lua-multipart
./OpenLinkHub
./treefmt
Expand Down
24 changes: 24 additions & 0 deletions packages/kavita/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ config, ... }:
{
config.packages.kavita = {
systems = [ "x86_64-linux" ];
package = { fetchNpmDeps, ... }:
config.inputs.nixos-unstable.result."x86_64-linux".kavita.overrideAttrs (prev: let
version = "0.8.8";
src = config.inputs.kavita.src // { name = "source"; };
in {
inherit src version;

frontend = prev.frontend.overrideAttrs (frontend-prev: {
inherit src version;
npmDepsHash = "sha256-7Bpsvqg2Vhp6/WG6o85OxX4hxZ6cd3A7iVB+H3IwbpE=";
npmDeps = fetchNpmDeps {
inherit src;
inherit (frontend-prev) sourceRoot;
name = "${frontend-prev.pname}-0.8.8-npm-deps";
hash = "sha256-7Bpsvqg2Vhp6/WG6o85OxX4hxZ6cd3A7iVB+H3IwbpE=";
};
});
});
};
}
1 change: 1 addition & 0 deletions systems/teal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
./headscale.nix
./hostname.nix
./kanidm.nix
./kavita.nix
./networking.nix
./secrets.nix
./silverbullet.nix
Expand Down
24 changes: 24 additions & 0 deletions systems/teal/kavita.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ project, system, ... }: {
services.kavita = {
enable = true;
package = project.packages.kavita.result.${system};
tokenKeyFile = "/secrets/kavita/tokenKeyFile";
settings = {
port = 1032;
IpAddresses = "127.0.0.1";
};
};

services.nginx.enable = true;
services.nginx.virtualHosts."books.freshly.space" = {
addSSL = true;
enableACME = true;
acmeRoot = null;

locations."/" = {
proxyPass = "http://127.0.0.1:1032";
recommendedProxySettings = true;
proxyWebsockets = true;
};
};
}
Loading