2024-11-08 03:59:57 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-25 01:26:23 +00:00
|
|
|
{
|
2024-10-18 04:10:30 +00:00
|
|
|
config = lib.mkIf (config.sconfig.desktop.enable) {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
(vscode-with-extensions.override {
|
|
|
|
vscodeExtensions = with pkgs.vscode-extensions; [
|
|
|
|
esbenp.prettier-vscode
|
|
|
|
jnoortheen.nix-ide
|
|
|
|
ms-azuretools.vscode-docker
|
|
|
|
ms-python.python
|
|
|
|
redhat.vscode-yaml
|
|
|
|
shardulm94.trailing-spaces
|
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
2024-06-25 01:26:23 +00:00
|
|
|
|
2024-10-18 04:10:30 +00:00
|
|
|
environment.etc."bck-settings.sh".text = ''
|
|
|
|
mkdir -p ~/.config/Code/User
|
|
|
|
ln -sf /etc/vscode-settings.json ~/.config/Code/User/settings.json
|
|
|
|
ln -sf /etc/vscode-keybindings.json ~/.config/Code/User/keybindings.json
|
|
|
|
'';
|
2024-06-25 01:26:23 +00:00
|
|
|
|
2024-10-18 04:10:30 +00:00
|
|
|
environment.etc."vscode-keybindings.json".source = ./vscode-keybindings.json;
|
|
|
|
environment.etc."vscode-settings.json".text = builtins.toJSON (
|
2024-11-08 03:59:57 +00:00
|
|
|
(builtins.fromJSON (builtins.readFile ./vscode-settings.json))
|
|
|
|
// {
|
2024-10-18 04:10:30 +00:00
|
|
|
# NixOS-specific vscode settings:
|
|
|
|
"extensions.autoCheckUpdates" = false;
|
|
|
|
"extensions.autoUpdate" = false;
|
|
|
|
"terminal.external.linuxExec" = "x-terminal-emulator";
|
|
|
|
"terminal.integrated.fontFamily" = "DejaVuSansM Nerd Font";
|
|
|
|
"update.mode" = "none";
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
2024-06-25 01:26:23 +00:00
|
|
|
}
|