From 5842dfcdb60959927f0ccd19a51daa09b701eb64 Mon Sep 17 00:00:00 2001 From: cnst Date: Thu, 12 Dec 2024 17:57:25 +0100 Subject: [PATCH] add mkForce to overwrite pesky mimeapps that keeps blocking hm --- modules/home/programs/hyprland/keybinds.nix | 4 ++-- modules/home/services/xdg/default.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/home/programs/hyprland/keybinds.nix b/modules/home/programs/hyprland/keybinds.nix index 16a29040..63c662b4 100644 --- a/modules/home/programs/hyprland/keybinds.nix +++ b/modules/home/programs/hyprland/keybinds.nix @@ -108,8 +108,8 @@ in { (mkIf (host == "cnixpad") { wayland.windowManager.hyprland.settings = { "$terminal" = "foot"; - "$browser" = "zen"; - "$browserinc" = "zen --private-window"; + "$browser" = "floorp"; + "$browserinc" = "floorp --private-window"; "$mod" = "ALT_L"; bind = [ # Add more host-specific binds as needed diff --git a/modules/home/services/xdg/default.nix b/modules/home/services/xdg/default.nix index 4768257e..2c0202ba 100644 --- a/modules/home/services/xdg/default.nix +++ b/modules/home/services/xdg/default.nix @@ -4,7 +4,7 @@ osConfig, ... }: let - inherit (lib) mkIf mkEnableOption elem; + inherit (lib) mkIf mkEnableOption mkForce elem; browser = if elem osConfig.networking.hostName ["cnix" "cnixpad" "toothpc"] then "zen.desktop" @@ -30,7 +30,7 @@ in { }; mimeApps = { enable = true; - defaultApplications = { + defaultApplications = mkForce { "text/html" = browser; "text/xml" = browser; "x-scheme-handler/http" = browser;