Are you following the right branch?
Is there an existing issue for this?
Issue description
I was having issues with vscode packages being changed or reset on rebuild due to symlinking issues. These issues refer to that bug
7719
3507
4394
The fix ended up being programs.vscode.mutableExtensionsDir = false;. However, the extensions are only installed when defined under programs.vscode.extensions, instead of programs.vscode.profiles.default.extensions, causing this warning upon building.
trace: warning: tomcotton profile: The option `programs.vscode.extensions' defined in `/nix/store/gg0lmpkbg63kgsd95h7sh1j5psp39a1a-source/home/tomcotton.nix' has been renamed to `programs.vscode.profiles.default.extensions'.
The extensions end up working, but the error message is worrying.
My working config
programs.vscode = {
enable = true;
mutableExtensionsDir = false;
extensions = with pkgs.vscode-extensions; [
asvetliakov.vscode-neovim
ms-vscode.cpptools
bbenoist.nix
ms-vscode.cpptools-extension-pack
xaver.clang-format
twxs.cmake
ms-vscode.cmake-tools
james-yu.latex-workshop
ms-dotnettools.csharp
ms-dotnettools.csdevkit
saoudrizwan.claude-dev
ms-dotnettools.vscode-dotnet-runtime
mechatroner.rainbow-csv
ms-python.vscode-pylance
ms-python.python
ms-python.debugpy
antyos.openscad
ms-vscode.makefile-tools
valentjn.vscode-ltex
vadimcn.vscode-lldb
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "chuck";
publisher = "forrcaho";
version = "1.0.1";
sha256 = "sha256-gqcN7eam0YnBNQ2z7tA7Fo7PbXnJV0lX9TqcEbnMDL8=";
}
];
profiles.default = {
userSettings = {
# This property will be used to generate settings.json:
# https://code.visualstudio.com/docs/getstarted/settings#_settingsjson
"editor.formatOnSave" = true;
keybindings = [
# See https://code.visualstudio.com/docs/getstarted/keybindings#_advanced-customization
{
key = "shift+cmd+j";
command = "workbench.action.focusActiveEditorGroup";
when = "terminalFocus";
}
];
};
};
};
Maintainer CC
I can't find the maintainer, sorry. The issues I cited above also have no response here :/
System information
- system: `"aarch64-darwin"`
- host os: `Darwin 24.6.0, macOS 15.6.1`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.25.3`
- nixpkgs: `/nix/store/1l18ynbd52x2xq8asyqbdhdngwvhvich-source`
Are you following the right branch?
Is there an existing issue for this?
Issue description
I was having issues with vscode packages being changed or reset on rebuild due to symlinking issues. These issues refer to that bug
7719
3507
4394
The fix ended up being
programs.vscode.mutableExtensionsDir = false;. However, the extensions are only installed when defined underprograms.vscode.extensions, instead ofprograms.vscode.profiles.default.extensions, causing this warning upon building.The extensions end up working, but the error message is worrying.
My working config
Maintainer CC
I can't find the maintainer, sorry. The issues I cited above also have no response here :/
System information