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

22 lines
547 B
Nix
Raw Normal View History

2024-08-05 20:31:34 +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 =
2024-08-05 20:31:34 +02:00
let
vaultDir = "${config.xdg.userDirs.extraConfig.XDG_PROJECTS_DIR}/stellar-sanctum";
2024-07-06 19:32:14 +02:00
in
2024-08-05 20:31:34 +02:00
builtins.toString (
pkgs.writeShellScript "obsidiantui" ''
foot -a Obsidian -D ${vaultDir} nvim
''
);
2024-05-01 04:35:50 +02:00
};
}