Set the notes directory path

This commit is contained in:
Oliver Davies 2024-12-16 17:58:54 +00:00
parent 434c40597b
commit 452f5875ce
3 changed files with 14 additions and 2 deletions

View file

@ -25,7 +25,7 @@
exit 1
fi
output_file="$HOME/Documents/videos.json"
output_file="''${DOCUMENTS}/videos.json"
${pkgs.tree}/bin/tree -J "$source_path/Videos" | ${pkgs.jq}/bin/jq . > "$output_file"
${pkgs.jq}/bin/jq . < "$output_file"

View file

@ -20,4 +20,8 @@
})
./features/desktop
];
home.sessionVariables = {
DOCUMENTS = "$HOME/Documents";
};
}

View file

@ -1,5 +1,13 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ notes ];
home = {
packages = with pkgs; [ notes ];
sessionVariables = {
NOTES_DIRECTORY = "$WIKI_DIRECTORY/notes";
WIKI_DIRECTORY = "$DOCUMENTS/wiki";
};
};
}