fix(vscode): move extensions under profiles.default
programs.vscode.extensions was renamed to programs.vscode.profiles.default.extensions in home-manager. The bare option still worked via the compat shim but emitted a deprecation warning on every eval (21× — once per home evaluation in flake check) and will break when the alias is dropped. userSettings already lived under profiles.default; extensions now joins it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -108,17 +108,19 @@ in
|
||||
programs.vscode = {
|
||||
enable = lib.mkDefault true;
|
||||
package = lib.mkDefault pkgs.vscode;
|
||||
profiles.default.userSettings = lib.mkDefault {
|
||||
"update.mode" = "none";
|
||||
"workbench.colorTheme" = themeConfig.name;
|
||||
"window.titleBarStyle" = "custom";
|
||||
"editor.fontFamily" = "'${config.nomarchy.fonts.monospace}', 'Droid Sans Mono', monospace";
|
||||
"terminal.integrated.fontFamily" = config.nomarchy.fonts.monospace;
|
||||
profiles.default = {
|
||||
userSettings = lib.mkDefault {
|
||||
"update.mode" = "none";
|
||||
"workbench.colorTheme" = themeConfig.name;
|
||||
"window.titleBarStyle" = "custom";
|
||||
"editor.fontFamily" = "'${config.nomarchy.fonts.monospace}', 'Droid Sans Mono', monospace";
|
||||
"terminal.integrated.fontFamily" = config.nomarchy.fonts.monospace;
|
||||
};
|
||||
extensions = lib.mkDefault (
|
||||
themeExtensions
|
||||
++ lib.optionals config.nomarchy.vscode.devExtensions devExtensions
|
||||
);
|
||||
};
|
||||
extensions = lib.mkDefault (
|
||||
themeExtensions
|
||||
++ lib.optionals config.nomarchy.vscode.devExtensions devExtensions
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user