diff --git a/home/programming/editors/vscode.nix b/home/programming/editors/vscode.nix index fb3a35c..df083a9 100644 --- a/home/programming/editors/vscode.nix +++ b/home/programming/editors/vscode.nix @@ -5,7 +5,6 @@ enable = true; userSettings = { "editor.tabSize" = 4; - "window.zoomLevel" = 1; "workbench.preferredDarkColorTheme" = "SynthWave '84"; "editor.fontSize" = 24; "editor.fontFamily" = "'Comic Code'"; @@ -18,4 +17,19 @@ "synthwave84.disableGlow" = true; }; }; + # make config changeable + home = { + activation = { + afterWriteBoundary = { + after = [ "writeBoundary" ]; + before = [ ]; + data = '' + vscodeDir=$HOME/.config/Code/User + $DRY_RUN_CMD cat $vscodeDir/settings.json > $vscodeDir/settings_whatever.json + $DRY_RUN_CMD rm -f $vscodeDir/settings.json + $DRY_RUN_CMD cp $vscodeDir/settings_whatever.json $vscodeDir/settings.json + ''; + }; + }; + }; }