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 = {