vscode: switch settings file from tmpfile to symlink

This commit is contained in:
SebastianStork 2025-07-16 21:41:48 +02:00
parent 526d3182ec
commit 2e1a707c5e

View file

@ -13,7 +13,8 @@
programs.vscode = {
enable = true;
package = pkgs-unstable.vscodium;
profiles.default.extensions =
profiles.default = {
extensions =
let
inherit (inputs.nix-vscode-extensions.extensions.${pkgs.system}) open-vsx;
in
@ -26,12 +27,7 @@
open-vsx.github.github-vscode-theme
open-vsx.pkief.material-icon-theme
];
};
systemd.user.tmpfiles.rules =
let
settings = builtins.replaceStrings [ "," ] [ ",\\n" ] (
builtins.toJSON {
userSettings = {
"workbench.colorTheme" =
{
dark = "GitHub Dark";
@ -57,12 +53,8 @@
"workbench.editor.decorations.colors" = false;
"window.titleBarStyle" = "native";
"window.customTitleBarVisibility" = "never";
}
);
in
[
"f+ %h/.config/VSCodium/User/settings.json - - - - ${settings}"
"f+ %h/.config/VSCodium/User/settings-default.json - - - - ${settings}"
];
};
};
};
};
}