Change DOCUMENTS to XDG_DOCUMENTS_DIR

This commit is contained in:
Oliver Davies 2025-03-17 20:05:16 +00:00
parent 92d3b2946a
commit 0188b564a5
2 changed files with 2 additions and 2 deletions
nix
home/opdavies
lib/shared/scripts

View file

@ -57,7 +57,6 @@ in
home.packages = shared-packages;
home.sessionVariables = {
DOCUMENTS = "$HOME/Documents";
EDITOR = "nvim";
LANG = "en_GB.UTF-8";
LC_ALL = "en_GB.UTF-8";
@ -72,6 +71,7 @@ in
PULUMI_SKIP_UPDATE_CHECK = "true";
XDG_CONFIG_HOME = "${config.xdg.configHome}";
XDG_DATA_HOME = "${config.xdg.dataHome}";
XDG_DOCUMENTS_DIR = "$HOME/Documents";
XDG_REPOS_DIR = "$HOME/Code";
};
}

View file

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