mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
karakeep overlay meilisearch
This commit is contained in:
parent
f4896db1d6
commit
6ab451ab4a
4 changed files with 21 additions and 2 deletions
|
|
@ -37,6 +37,7 @@
|
|||
rust = rust-overlay.overlays.default;
|
||||
halloy = import ./overlays/halloy-overlay.nix;
|
||||
waveterm = import ./overlays/waveterm-overlay.nix;
|
||||
karakeep = import ./overlays/karakeep-overlay.nix;
|
||||
};
|
||||
|
||||
in
|
||||
|
|
@ -79,6 +80,7 @@
|
|||
overlays.waveterm
|
||||
overlays.rust
|
||||
overlays.halloy
|
||||
overlays.karakeep
|
||||
];
|
||||
}
|
||||
./nixos/configuration.nix
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
};
|
||||
|
||||
services.karakeep = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
meilisearch.enable = true;
|
||||
browser.enable = true;
|
||||
environmentFile = "/etc/nixos/secrets/karakeep.env";
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
../modules/adguard.nix
|
||||
../modules/containers/docker/juicefs.nix
|
||||
../modules/nixos/orac/restic.nix
|
||||
../modules/containers/docker/karakeep/docker-compose.nix
|
||||
# ../modules/containers/docker/karakeep/docker-compose.nix
|
||||
];
|
||||
|
||||
networking.firewall = {
|
||||
|
|
|
|||
17
overlays/karakeep-overlay.nix
Normal file
17
overlays/karakeep-overlay.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
final: prev: {
|
||||
meilisearch = prev.meilisearch.overrideAttrs (old: {
|
||||
pname = "meilisearch-bin";
|
||||
version = "1.13.3";
|
||||
src = prev.fetchurl {
|
||||
url = "https://github.com/meilisearch/meilisearch/releases/download/v1.13.3/meilisearch-linux-amd64";
|
||||
sha256 = "077ab23bb5ab9bdd1765e9f1641eec8eefd793d3d51f0fd3e8357fb0ad43770c";
|
||||
};
|
||||
dontUnpack = true;
|
||||
dontBuild = true;
|
||||
installPhase = ''
|
||||
install -Dm755 $src $out/bin/meilisearch
|
||||
'';
|
||||
# Fix dynamic linking issues for the binary
|
||||
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ prev.autoPatchelfHook ];
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue