mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11: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 = {
|
||||
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}"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue