From b820d35d0ad3bc9e160dde8468516a54db7024c5 Mon Sep 17 00:00:00 2001 From: jackjohn7 Date: Thu, 16 Apr 2026 23:32:19 -0500 Subject: [PATCH] add chromium but keep librewolf as default --- modules/features/librewolf.nix | 28 ++++++++++++++++++++++++- modules/hosts/desktop/configuration.nix | 1 + 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/modules/features/librewolf.nix b/modules/features/librewolf.nix index 29abbb5..0f53510 100644 --- a/modules/features/librewolf.nix +++ b/modules/features/librewolf.nix @@ -1,4 +1,10 @@ -{ self, inputs, ... }: +{ + self, + inputs, + hjem, + config, + ... +}: { flake.nixosModules.librewolf = { pkgs, lib, ... }: @@ -37,6 +43,26 @@ }; }; + hjem.users."${config.username}" = { + xdg.mime-apps.default-applications = { + "text/html" = [ + "librewolf.desktop" + ]; + "x-scheme-handler/http" = [ + "librewolf.desktop" + ]; + "x-scheme-handler/https" = [ + "librewolf.desktop" + ]; + "x-scheme-handler/about" = [ + "librewolf.desktop" + ]; + "x-scheme-handler/unknown" = [ + "librewolf.desktop" + ]; + }; + }; + environment.etc."firefox/policies/policies.json".target = "librewolf/policies/policies.json"; }; } diff --git a/modules/hosts/desktop/configuration.nix b/modules/hosts/desktop/configuration.nix index 2c07ace..8fee968 100644 --- a/modules/hosts/desktop/configuration.nix +++ b/modules/hosts/desktop/configuration.nix @@ -34,6 +34,7 @@ pavucontrol keepassxc amberol + chromium (element-desktop.override { commandLineArgs = "--password-store=gnome-libsecret"; })