From 0012b0730430b7a836f8fae376ac9bd6e49230ab Mon Sep 17 00:00:00 2001 From: Martin Pander Date: Fri, 13 Feb 2026 21:33:50 +0100 Subject: [PATCH] Fix obsidian.nvim workspace --- modules/home/nvim.nix | 3 ++- modules/nvim/lua/plugins.lua | 12 +++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/home/nvim.nix b/modules/home/nvim.nix index 985a821..d7cc322 100644 --- a/modules/home/nvim.nix +++ b/modules/home/nvim.nix @@ -82,7 +82,8 @@ in extraLuaConfig = '' _G.is_work = ${if cfg.workMode then "true" else "false"} - _G.is_home = ${if pkgs.stdenv.isDarwin then "true" else "false"} + _G.is_mac = ${if pkgs.stdenv.isDarwin then "true" else "false"} + _G.is_private_nixos = ${if !cfg.workMode && pkgs.stdenv.isLinux then "true" else "false"} require('base') require('keymaps') diff --git a/modules/nvim/lua/plugins.lua b/modules/nvim/lua/plugins.lua index bb17f18..723be53 100644 --- a/modules/nvim/lua/plugins.lua +++ b/modules/nvim/lua/plugins.lua @@ -377,7 +377,7 @@ dap.configurations.zig = { }, } -if _G.is_home then +if _G.is_mac then workspaces = { { name = "privat", @@ -410,6 +410,16 @@ if _G.is_work then daily_notes = {} end +if _G.is_private_nixos then + workspaces = { + { + name = "tech", + path = "~/notes", + }, + } + daily_notes = {} +end + require("obsidian").setup({ workspaces = workspaces, templates = {