2024-05-01 04:35:50 +02:00
|
|
|
{ config, pkgs, ... }: {
|
2024-07-06 19:32:14 +02:00
|
|
|
home.packages = [ pkgs.obsidian ];
|
2024-05-01 04:35:50 +02:00
|
|
|
|
2024-07-06 19:32:14 +02:00
|
|
|
# Start nvim with a custom class so our WM can move it to the correct workspace
|
2024-05-01 04:35:50 +02:00
|
|
|
xdg.desktopEntries.obsidiantui = {
|
|
|
|
name = "Obsidian TUI";
|
|
|
|
type = "Application";
|
|
|
|
icon = "obsidian";
|
2024-07-06 19:32:14 +02:00
|
|
|
terminal = false;
|
|
|
|
exec =
|
|
|
|
let vaultDir = "${config.xdg.userDirs.extraConfig.XDG_PROJECTS_DIR}/stellar-sanctum";
|
|
|
|
in
|
|
|
|
builtins.toString (pkgs.writeShellScript "obsidiantui" ''
|
|
|
|
wezterm start --class "org.wezfurlong.wezterm.obsidian" --cwd ${vaultDir} nvim
|
|
|
|
'');
|
2024-05-01 04:35:50 +02:00
|
|
|
};
|
|
|
|
}
|