From 238ba23d9a06f11cd038b65a639cdc4046a89bd0 Mon Sep 17 00:00:00 2001 From: Konrad Malik Date: Sat, 12 Oct 2024 21:48:24 +0200 Subject: [PATCH] refactor: neovim system paths as symlinks --- flake.lock | 12 ++++++------ home/konrad/m3800.nix | 5 +++-- home/konrad/mbp13.nix | 5 +++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index 8ada6079..a3b5a887 100644 --- a/flake.lock +++ b/flake.lock @@ -630,11 +630,11 @@ "git-conflict-nvim": { "flake": false, "locked": { - "lastModified": 1728590407, - "narHash": "sha256-AqV3WsxS8R4Bzb1aevvDq0H0EM7TC5XejLR8hgBUnPk=", + "lastModified": 1728767593, + "narHash": "sha256-2T/oK2HNJM6UiXleKiNE2PrIwVVtJnGNxSRVj8r1gUU=", "owner": "konradmalik", "repo": "git-conflict.nvim", - "rev": "4fffaa228b36258bcb60a0c220924ca84a0cd39c", + "rev": "6218bde1987c8a8ca0613380668e060b69281c26", "type": "github" }, "original": { @@ -1292,11 +1292,11 @@ "which-key-nvim": "which-key-nvim" }, "locked": { - "lastModified": 1728657933, - "narHash": "sha256-5t8VtwMAFPFUF/T/2LtyoEWSYmH7O/7KFwudi3nWjBs=", + "lastModified": 1728767627, + "narHash": "sha256-U76EE/uFceOYg4+hLWwUkhk8nbw/ti6eNb/eWlqyhDM=", "owner": "konradmalik", "repo": "neovim-flake", - "rev": "93144c781af9a536c3b58e4ac73784b2b4940e6d", + "rev": "7f0e4058a71d2fc317eaf7f93624e7c257dd5f4a", "type": "github" }, "original": { diff --git a/home/konrad/m3800.nix b/home/konrad/m3800.nix index ab86d62f..af7b71d5 100644 --- a/home/konrad/m3800.nix +++ b/home/konrad/m3800.nix @@ -1,5 +1,6 @@ { config, ... }: let + inherit (config.lib.file) mkOutOfStoreSymlink; obsidianPath = "${config.home.homeDirectory}/obsidian"; in { @@ -16,8 +17,8 @@ in enable = true; }; programs.neovim-pde = { - notesPath = "${obsidianPath}/Personal"; - spellPath = "${config.home.homeDirectory}/Code/github.com/konradmalik/neovim-flake/files/spell"; + notesPath = mkOutOfStoreSymlink "${obsidianPath}/Personal"; + spellPath = mkOutOfStoreSymlink "${config.home.homeDirectory}/Code/github.com/konradmalik/neovim-flake/files/spell"; }; konrad.programs.restic = { enable = true; diff --git a/home/konrad/mbp13.nix b/home/konrad/mbp13.nix index b2b0ac89..c80722a0 100644 --- a/home/konrad/mbp13.nix +++ b/home/konrad/mbp13.nix @@ -1,5 +1,6 @@ { config, ... }: let + inherit (config.lib.file) mkOutOfStoreSymlink; obsidianPath = "${config.home.homeDirectory}/Library/Mobile Documents/iCloud~md~obsidian/Documents"; in { @@ -24,8 +25,8 @@ in package = null; }; programs.neovim-pde = { - notesPath = "${obsidianPath}/Personal"; - spellPath = "${config.home.homeDirectory}/Code/github.com/konradmalik/neovim-flake/files/spell"; + notesPath = mkOutOfStoreSymlink "${obsidianPath}/Personal"; + spellPath = mkOutOfStoreSymlink "${config.home.homeDirectory}/Code/github.com/konradmalik/neovim-flake/files/spell"; }; konrad.programs.restic = { enable = true;