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"; + }; + }; + }; }