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 |
| 14 | ]; |
| 15 | } // { |
| 16 | pname = "vscode"; |
| 17 | }; |
Skyler Grey | 0bfc39a | 2022-09-01 23:57:50 +0100 | [diff] [blame] | 18 | mutableExtensionsDir = false; |
| 19 | userSettings = { |
| 20 | "update.channel" = "none"; |
| 21 | "workbench.colorTheme" = "onehalf-dark"; |
| 22 | "workbench.startupEditor" = "none"; |
Skyler Grey | 5fce8d4 | 2022-10-30 23:02:58 +0000 | [diff] [blame] | 23 | "files.autoSave" = "afterDelay"; |
| 24 | "files.autoSaveDelay" = 100; |
Skyler Grey | 1f86071 | 2022-11-05 10:11:40 +0000 | [diff] [blame] | 25 | "editor.lineNumbers" = "relative"; |
Skyler Grey | e027892 | 2022-10-31 00:32:10 +0000 | [diff] [blame] | 26 | "extensions.experimental.affinity" = { |
| 27 | "asvetliakov.vscode-neovim" = 1; |
| 28 | }; |
| 29 | "vscode-neovim.neovimExecutablePaths.linux" = "${home.programs.neovim.finalPackage}/bin/nvim"; |
Skyler Grey | 10dd87b | 2023-02-16 16:21:22 +0000 | [diff] [blame] | 30 | "security.workspace.trust.enabled" = false; |
Skyler Grey | 0bfc39a | 2022-09-01 23:57:50 +0100 | [diff] [blame] | 31 | }; |
| 32 | }; |
Skyler Grey | 6b291c4 | 2023-01-25 21:34:13 +0000 | [diff] [blame] | 33 | config.internal.allowUnfree = [ |
| 34 | "vscode-extension-ms-vsliveshare-vsliveshare" |
| 35 | "vscode" |
| 36 | "vscode-with-extensions" |
| 37 | ]; |
Skyler Grey | 0bfc39a | 2022-09-01 23:57:50 +0100 | [diff] [blame] | 38 | } |