1
Fork 0
satellite/home/features/desktop/obsidian.nix

22 lines
547 B
Nix

{ config, pkgs, ... }:
{
home.packages = [ pkgs.obsidian ];
# Start nvim with a custom class so our WM can move it to the correct workspace
xdg.desktopEntries.obsidiantui = {
name = "Obsidian TUI";
type = "Application";
icon = "obsidian";
terminal = false;
exec =
let
vaultDir = "${config.xdg.userDirs.extraConfig.XDG_PROJECTS_DIR}/stellar-sanctum";
in
builtins.toString (
pkgs.writeShellScript "obsidiantui" ''
foot -a Obsidian -D ${vaultDir} nvim
''
);
};
}