mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
vscode: switch settings file from tmpfile to symlink
This commit is contained in:
parent
526d3182ec
commit
2e1a707c5e
1 changed files with 41 additions and 49 deletions
|
|
@ -13,7 +13,8 @@
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs-unstable.vscodium;
|
package = pkgs-unstable.vscodium;
|
||||||
profiles.default.extensions =
|
profiles.default = {
|
||||||
|
extensions =
|
||||||
let
|
let
|
||||||
inherit (inputs.nix-vscode-extensions.extensions.${pkgs.system}) open-vsx;
|
inherit (inputs.nix-vscode-extensions.extensions.${pkgs.system}) open-vsx;
|
||||||
in
|
in
|
||||||
|
|
@ -26,12 +27,7 @@
|
||||||
open-vsx.github.github-vscode-theme
|
open-vsx.github.github-vscode-theme
|
||||||
open-vsx.pkief.material-icon-theme
|
open-vsx.pkief.material-icon-theme
|
||||||
];
|
];
|
||||||
};
|
userSettings = {
|
||||||
|
|
||||||
systemd.user.tmpfiles.rules =
|
|
||||||
let
|
|
||||||
settings = builtins.replaceStrings [ "," ] [ ",\\n" ] (
|
|
||||||
builtins.toJSON {
|
|
||||||
"workbench.colorTheme" =
|
"workbench.colorTheme" =
|
||||||
{
|
{
|
||||||
dark = "GitHub Dark";
|
dark = "GitHub Dark";
|
||||||
|
|
@ -57,12 +53,8 @@
|
||||||
"workbench.editor.decorations.colors" = false;
|
"workbench.editor.decorations.colors" = false;
|
||||||
"window.titleBarStyle" = "native";
|
"window.titleBarStyle" = "native";
|
||||||
"window.customTitleBarVisibility" = "never";
|
"window.customTitleBarVisibility" = "never";
|
||||||
}
|
};
|
||||||
);
|
};
|
||||||
in
|
};
|
||||||
[
|
|
||||||
"f+ %h/.config/VSCodium/User/settings.json - - - - ${settings}"
|
|
||||||
"f+ %h/.config/VSCodium/User/settings-default.json - - - - ${settings}"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue