diff options
| -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 { |
