add mkForce to overwrite pesky mimeapps that keeps blocking hm

This commit is contained in:
cnst
2024-12-12 17:57:25 +01:00
parent 8dbe15c923
commit 5842dfcdb6
2 changed files with 4 additions and 4 deletions

View File

@@ -108,8 +108,8 @@ in {
(mkIf (host == "cnixpad") { (mkIf (host == "cnixpad") {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
"$terminal" = "foot"; "$terminal" = "foot";
"$browser" = "zen"; "$browser" = "floorp";
"$browserinc" = "zen --private-window"; "$browserinc" = "floorp --private-window";
"$mod" = "ALT_L"; "$mod" = "ALT_L";
bind = [ bind = [
# Add more host-specific binds as needed # Add more host-specific binds as needed

View File

@@ -4,7 +4,7 @@
osConfig, osConfig,
... ...
}: let }: let
inherit (lib) mkIf mkEnableOption elem; inherit (lib) mkIf mkEnableOption mkForce elem;
browser = browser =
if elem osConfig.networking.hostName ["cnix" "cnixpad" "toothpc"] if elem osConfig.networking.hostName ["cnix" "cnixpad" "toothpc"]
then "zen.desktop" then "zen.desktop"
@@ -30,7 +30,7 @@ in {
}; };
mimeApps = { mimeApps = {
enable = true; enable = true;
defaultApplications = { defaultApplications = mkForce {
"text/html" = browser; "text/html" = browser;
"text/xml" = browser; "text/xml" = browser;
"x-scheme-handler/http" = browser; "x-scheme-handler/http" = browser;