Skip to content

Commit

Permalink
refactor: neovim system paths as symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Oct 12, 2024
1 parent a9a44db commit 238ba23
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions home/konrad/m3800.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ config, ... }:
let
inherit (config.lib.file) mkOutOfStoreSymlink;
obsidianPath = "${config.home.homeDirectory}/obsidian";
in
{
Expand All @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions home/konrad/mbp13.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ config, ... }:
let
inherit (config.lib.file) mkOutOfStoreSymlink;
obsidianPath = "${config.home.homeDirectory}/Library/Mobile Documents/iCloud~md~obsidian/Documents";
in
{
Expand All @@ -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;
Expand Down

0 comments on commit 238ba23

Please sign in to comment.