From a5e04c048e2a0ce3e53f8f4c10590879505d4392 Mon Sep 17 00:00:00 2001 From: moons-14 Date: Wed, 12 Nov 2025 12:44:40 +0900 Subject: [PATCH] vscode --- modules/core/gui.nix | 6 +++++- modules/home/vscode.nix | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/modules/core/gui.nix b/modules/core/gui.nix index 589001e..4b0d337 100644 --- a/modules/core/gui.nix +++ b/modules/core/gui.nix @@ -1,4 +1,8 @@ { pkgs, ... }: { - environment.systemPackages = with pkgs; [ slack insomnia ]; + environment.systemPackages = with pkgs; [ + slack + insomnia + obsidian + ]; } \ No newline at end of file diff --git a/modules/home/vscode.nix b/modules/home/vscode.nix index dab6f82..14de09e 100644 --- a/modules/home/vscode.nix +++ b/modules/home/vscode.nix @@ -126,4 +126,26 @@ in { "locale": "ja" } ''; + + + xdg.desktopEntries."code-new-window" = { + name = "Visual Studio Code (New Window)"; + genericName = "Text Editor"; + comment = "Open a fresh VSCode window"; + exec = "${pkgs.vscode}/bin/code -n %F"; + settings = { + Keywords = "code;vscode;vs code;visual studio code;"; + }; + icon = "code"; + categories = [ "Development" "IDE" ]; + terminal = false; + type = "Application"; + mimeType = [ "text/plain" ]; + actions = { + NewWindow = { + name = "New Window"; + exec = "${pkgs.vscode}/bin/code -n"; + }; + }; + }; }