From 2ea920c0c035edd0bc37d3c59880f01944cfd683 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 22 Jun 2023 10:20:58 -0400 Subject: [PATCH] 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. --- home/xdg-user-dirs.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/home/xdg-user-dirs.nix b/home/xdg-user-dirs.nix index 10097079..3a510400 100644 --- a/home/xdg-user-dirs.nix +++ b/home/xdg-user-dirs.nix @@ -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";