diff --git a/home.nix b/home.nix index bc185eb..ad90a4a 100644 --- a/home.nix +++ b/home.nix @@ -7,6 +7,7 @@ ./homeManagerModules/shell.nix ./homeManagerModules/ssh.nix ./homeManagerModules/docker.nix + ./homeManagerModules/vscode.nix ]; # Home Manager needs a bit of information about you and the paths it should # manage. @@ -32,6 +33,11 @@ # # parentheses. Maybe you want to install Nerd Fonts with a limited number of # # fonts? # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) + ] ++ lib.optionals config.graphical [ + discord + spotify + sublime4 + joplin-desktop ]; # Home Manager can also manage your environment variables through diff --git a/homeManagerModules/vscode.nix b/homeManagerModules/vscode.nix new file mode 100644 index 0000000..e5eca5b --- /dev/null +++ b/homeManagerModules/vscode.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: +{ + programs.vscode = lib.mkIf config.graphical { + enable = true; + package = pkgs.vscode; + profiles.default.extensions = with pkgs.vscode-extensions; [ + mhutchie.git-graph + ms-vscode-remote.vscode-remote-extensionpack + ms-python.python + ms-python.vscode-pylance + ms-toolsai.jupyter + charliermarsh.ruff + github.vscode-pull-request-github + github.vscode-github-actions + github.copilot + catppuccin.catppuccin-vsc + ]; + }; +} \ No newline at end of file