Add Obsidian Leaflet plugin to BoM vault

Introduce a Nix derivation for the Obsidian Leaflet plugin and
configure the BoM vault to load it as a community plugin.
This commit is contained in:
2026-06-19 16:42:32 +02:00
parent 0ed84d8068
commit df3dd4a113
2 changed files with 25 additions and 0 deletions
@@ -0,0 +1,16 @@
{pkgs, ...}:
pkgs.stdenv.mkDerivation rec {
pname = "obsidian-leaflet";
version = "6.0.5";
src = pkgs.fetchzip {
url = "https://github.com/javalent/${pname}/releases/download/${version}/${pname}-${version}.zip";
hash = "sha256-RBogsPElRdZQD9UvwdxfB2X1gN5UY1VmbyYkK07GLFg=";
};
installPhase = ''
mkdir -p $out
cp main.js manifest.json $out/
cp styles.css $out/ 2>/dev/null || true
'';
}
+9
View File
@@ -1,4 +1,5 @@
{ {
pkgs,
lib, lib,
config, config,
... ...
@@ -8,5 +9,13 @@
config.programs.obsidian.vaults."BoM" = lib.mkIf config.obsidian.vaults."BoM".enable { config.programs.obsidian.vaults."BoM" = lib.mkIf config.obsidian.vaults."BoM".enable {
enable = true; enable = true;
target = "Obsidian/BoM"; target = "Obsidian/BoM";
settings.communityPlugins = [
{
enable = true;
pkg = pkgs.callPackage ../plugins/obsidian-leaflet.nix {};
# settings = {
# };
}
];
}; };
} }