xdg-user-dirs: Use config.variables.username

Note that I may change this to simply config.username in the future
depending on how many variables I actually need.
This commit is contained in:
Donovan Glover 2023-06-22 10:20:58 -04:00
parent 99d2913b41
commit 2ea920c0c0
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,4 +1,4 @@
let VARIABLES = import ../src/variables.nix; in { { config, ... }: {
xdg.userDirs = { xdg.userDirs = {
enable = true; enable = true;
@ -6,11 +6,11 @@ let VARIABLES = import ../src/variables.nix; in {
templates = null; templates = null;
publicShare = null; publicShare = null;
download = "/home/${VARIABLES.username}/"; download = "/home/${config.variables.username}/";
documents = "/home/${VARIABLES.username}/"; documents = "/home/${config.variables.username}/";
music = "/home/${VARIABLES.username}/"; music = "/home/${config.variables.username}/";
pictures = "/home/${VARIABLES.username}/"; pictures = "/home/${config.variables.username}/";
videos = "/home/${VARIABLES.username}/"; videos = "/home/${config.variables.username}/";
}; };
xdg.configFile."user-dirs.locale".text = "ja_JP"; xdg.configFile."user-dirs.locale".text = "ja_JP";