replace manual home dir with config option

This commit is contained in:
Noah Masur
2022-06-20 08:39:41 -04:00
parent fdfc66c7ad
commit 5a43ad997f
7 changed files with 15 additions and 23 deletions

View File

@ -246,7 +246,7 @@ in {
# Update lock screen cache only if cache is empty
home.activation.updateLockScreenCache =
let cacheDir = "/home/${config.user}/.cache/betterlockscreen/current";
let cacheDir = "${config.homePath}/.cache/betterlockscreen/current";
in config.home-manager.users.${config.user}.lib.dag.entryAfter
[ "writeBoundary" ] ''
if [ ! -d ${cacheDir} ] || [ -z "$(ls ${cacheDir})" ]; then