diff options
| author | Seth Flynn <[email protected]> | 2025-03-04 14:10:58 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-03-04 14:10:58 -0500 |
| commit | bda62257a33b045c1f605c03793d8d5d0a93805b (patch) | |
| tree | cff109701832d566bc263e0f95bdc19d9402a29d /modules | |
| parent | 13c164fd38bcc7e00ff5430bd0a4c4c9c4ed5beb (diff) | |
home/arkenfox: fixup prefsCleaner.sh hook script
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/home/arkenfox/default.nix | 8 |
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 { |
