Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { pkgs |
| 2 | , vscode-extensions |
| 3 | , system |
Skyler Grey | e027892 | 2022-10-31 00:32:10 +0000 | [diff] [blame] | 4 | , home |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 5 | , ... |
Skyler Grey | 0bfc39a | 2022-09-01 23:57:50 +0100 | [diff] [blame] | 6 | }: { |
| 7 | home.programs.vscode = { |
| 8 | enable = true; |
Skyler Grey | 6b291c4 | 2023-01-25 21:34:13 +0000 | [diff] [blame] | 9 | package = pkgs.vscode-with-extensions.override { |
| 10 | vscodeExtensions = with vscode-extensions.packages.${system}; [ |
| 11 | vscode.quandinh.onehalf-dark |
| 12 | pkgs.vscode-extensions.ms-vsliveshare.vsliveshare |
| 13 | pkgs.vscode-extensions.asvetliakov.vscode-neovim |
Skyler Grey | 886c40f | 2023-03-07 13:15:24 +0000 | [diff] [blame] | 14 | pkgs.vscode-extensions.ms-vscode-remote.remote-ssh |
Skyler Grey | 6b291c4 | 2023-01-25 21:34:13 +0000 | [diff] [blame] | 15 | ]; |
| 16 | } // { |
| 17 | pname = "vscode"; |
| 18 | }; |
Skyler Grey | 0bfc39a | 2022-09-01 23:57:50 +0100 | [diff] [blame] | 19 | mutableExtensionsDir = false; |
| 20 | userSettings = { |
| 21 | "update.channel" = "none"; |
| 22 | "workbench.colorTheme" = "onehalf-dark"; |
| 23 | "workbench.startupEditor" = "none"; |
Skyler Grey | 5fce8d4 | 2022-10-30 23:02:58 +0000 | [diff] [blame] | 24 | "files.autoSave" = "afterDelay"; |
| 25 | "files.autoSaveDelay" = 100; |
Skyler Grey | 1f86071 | 2022-11-05 10:11:40 +0000 | [diff] [blame] | 26 | "editor.lineNumbers" = "relative"; |
Skyler Grey | e027892 | 2022-10-31 00:32:10 +0000 | [diff] [blame] | 27 | "extensions.experimental.affinity" = { |
| 28 | "asvetliakov.vscode-neovim" = 1; |
| 29 | }; |
| 30 | "vscode-neovim.neovimExecutablePaths.linux" = "${home.programs.neovim.finalPackage}/bin/nvim"; |
Skyler Grey | 10dd87b | 2023-02-16 16:21:22 +0000 | [diff] [blame] | 31 | "security.workspace.trust.enabled" = false; |
Skyler Grey | 0bfc39a | 2022-09-01 23:57:50 +0100 | [diff] [blame] | 32 | }; |
| 33 | }; |
Skyler Grey | 6b291c4 | 2023-01-25 21:34:13 +0000 | [diff] [blame] | 34 | config.internal.allowUnfree = [ |
| 35 | "vscode-extension-ms-vsliveshare-vsliveshare" |
Skyler Grey | 886c40f | 2023-03-07 13:15:24 +0000 | [diff] [blame] | 36 | "vscode-extension-ms-vscode-remote-remote-ssh" |
Skyler Grey | 6b291c4 | 2023-01-25 21:34:13 +0000 | [diff] [blame] | 37 | "vscode" |
| 38 | "vscode-with-extensions" |
| 39 | ]; |
Skyler Grey | 0bfc39a | 2022-09-01 23:57:50 +0100 | [diff] [blame] | 40 | } |