+ Obsidian

This commit is contained in:
m3tm3re
2026-02-05 09:01:35 +01:00
parent a7ac2232ee
commit ffed020289
6 changed files with 59 additions and 9 deletions

View File

@@ -0,0 +1,25 @@
{
config,
lib,
...
}:
with lib; let
cfg = config.features.desktop.obsidian;
in {
options.features.desktop.obsidian.enable =
mkEnableOption "enable Obsidian knowledge base";
config = mkIf cfg.enable {
programs.obsidian.enable = true;
xdg.mimeApps = {
enable = true;
associations.added = {
"text/markdown" = ["obsidian.desktop"];
};
defaultApplications = {
"text/markdown" = ["obsidian.desktop"];
};
};
};
}