summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-03-04 14:10:58 -0500
committerSeth Flynn <[email protected]>2025-03-04 14:10:58 -0500
commitbda62257a33b045c1f605c03793d8d5d0a93805b (patch)
treecff109701832d566bc263e0f95bdc19d9402a29d
parent13c164fd38bcc7e00ff5430bd0a4c4c9c4ed5beb (diff)
home/arkenfox: fixup prefsCleaner.sh hook script
-rw-r--r--modules/home/arkenfox/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/home/arkenfox/default.nix b/modules/home/arkenfox/default.nix
index c92d1cb..4c4bdca 100644
--- a/modules/home/arkenfox/default.nix
+++ b/modules/home/arkenfox/default.nix
@@ -98,7 +98,13 @@ in
cat ${homeManagerUserJs} >> $out
'';
- onChange = "${config.home.homeDirectory}/${prefsCleanerPath} -d -s";
+ onChange = ''
+ cd ${config.home.homeDirectory}/${dirOf prefsCleanerPath}
+
+ if [[ -f prefs.js ]]; then
+ run --quiet ${config.home.homeDirectory}/${prefsCleanerPath} -d -s
+ fi
+ '';
};
${prefsCleanerPath} = lib.mkIf profile.arkenfox.enable {