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:
@@ -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
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -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 = {
|
||||||
|
# };
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user