From 4de8705203ed1f9ab68c3360d3b677ae069a4f27 Mon Sep 17 00:00:00 2001 From: moons-14 Date: Mon, 3 Nov 2025 14:51:21 +0900 Subject: [PATCH] browser --- modules/home/browser.nix | 17 +++++++++++++++++ modules/home/noctalia.nix | 10 ++++++++++ 2 files changed, 27 insertions(+) diff --git a/modules/home/browser.nix b/modules/home/browser.nix index b398e29..ed5cfe6 100644 --- a/modules/home/browser.nix +++ b/modules/home/browser.nix @@ -6,4 +6,21 @@ home.packages = with pkgs; [ google-chrome ]; + + xdg.desktopEntries."google-chrome" = { + name = "Google Chrome"; + genericName = "Web Browser"; + exec = "${pkgs.google-chrome}/bin/google-chrome-stable --enable-features=TouchpadOverscrollHistoryNavigation %U"; + terminal = false; + icon = "google-chrome"; + categories = [ "Network" "WebBrowser" ]; + startupNotify = true; + type = "Application"; + }; + + xdg.mimeApps.defaultApplications = { + "text/html" = "google-chrome.desktop"; + "x-scheme-handler/http" = "google-chrome.desktop"; + "x-scheme-handler/https" = "google-chrome.desktop"; + }; } diff --git a/modules/home/noctalia.nix b/modules/home/noctalia.nix index 1b73090..21c6e4c 100644 --- a/modules/home/noctalia.nix +++ b/modules/home/noctalia.nix @@ -90,6 +90,16 @@ randomIntervalSec = 60; transitionDuration = 1500; }; + dock = { + enabled = true; + displayMode = "auto_hide"; + backgroundOpacity = 0.8; + floatingRatio = 1; + size = 1; + onlySameOutput = true; + pinnedApps = [ "google-chrome.desktop" "code.desktop" ]; + colorizeIcons = false; + }; controlCenter = { position = "close_to_bar_button"; shortcuts = {