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 = {
enable = true;
@ -6,11 +6,11 @@ let VARIABLES = import ../src/variables.nix; in {
templates = null;
publicShare = null;
download = "/home/${VARIABLES.username}/";
documents = "/home/${VARIABLES.username}/";
music = "/home/${VARIABLES.username}/";
pictures = "/home/${VARIABLES.username}/";
videos = "/home/${VARIABLES.username}/";
download = "/home/${config.variables.username}/";
documents = "/home/${config.variables.username}/";
music = "/home/${config.variables.username}/";
pictures = "/home/${config.variables.username}/";
videos = "/home/${config.variables.username}/";
};
xdg.configFile."user-dirs.locale".text = "ja_JP";