From 92de6c2c0139bae9b19e3e068176ecb90a3567cb Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 5 Feb 2026 12:03:24 -0800 Subject: [PATCH] nixos: add chrome devtools desktop entry - Add a google-chrome launcher with remote debugging enabled - Add a tmux attach shell alias --- nixos/environment.nix | 1 + nixos/imalison.nix | 40 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/nixos/environment.nix b/nixos/environment.nix index ba3e4e2d..778b027c 100644 --- a/nixos/environment.nix +++ b/nixos/environment.nix @@ -68,6 +68,7 @@ with lib; shellAliases = { df_ssh = "TERM='xterm-256color ssh -o StrictHostKeyChecking=no'"; fix_nix = "LD_LIBRARY_PATH='' nix"; + ta = "tmux attach"; }; variables = { ROFI_SYSTEMD_TERM = "alacritty -e"; diff --git a/nixos/imalison.nix b/nixos/imalison.nix index 5fc1d152..d7f37641 100644 --- a/nixos/imalison.nix +++ b/nixos/imalison.nix @@ -1,7 +1,45 @@ -{ ... }: { +{ pkgs, ... }: { home-manager.users.imalison = { imports = [ ./emacs.nix ]; + + xdg.desktopEntries.google-chrome-devtools = { + name = "Google Chrome (DevTools)"; + genericName = "Web Browser"; + comment = "Access the Internet"; + icon = "google-chrome"; + terminal = false; + type = "Application"; + categories = [ "Network" "WebBrowser" ]; + mimeType = [ + "application/pdf" + "application/rdf+xml" + "application/rss+xml" + "application/xhtml+xml" + "application/xhtml_xml" + "application/xml" + "image/gif" + "image/jpeg" + "image/png" + "image/webp" + "text/html" + "text/xml" + "x-scheme-handler/http" + "x-scheme-handler/https" + "x-scheme-handler/google-chrome" + ]; + exec = "${pkgs.google-chrome}/bin/google-chrome-stable --remote-debugging-port=46649 --remote-allow-origins=http://127.0.0.1,http://localhost %U"; + actions = { + new-window = { + name = "New Window"; + exec = "${pkgs.google-chrome}/bin/google-chrome-stable --remote-debugging-port=46649 --remote-allow-origins=http://127.0.0.1,http://localhost"; + }; + new-private-window = { + name = "New Incognito Window"; + exec = "${pkgs.google-chrome}/bin/google-chrome-stable --remote-debugging-port=46649 --remote-allow-origins=http://127.0.0.1,http://localhost --incognito"; + }; + }; + }; }; }