mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 23:25:52 +05:30
20 lines
501 B
Nix
20 lines
501 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
# Module installing brave as default browser
|
|
home.packages = [ pkgs.brave ];
|
|
|
|
xdg.mimeApps.defaultApplications = {
|
|
"text/html" = "brave-browser.desktop";
|
|
"x-scheme-handler/http" = "brave-browser.desktop";
|
|
"x-scheme-handler/https" = "brave-browser.desktop";
|
|
"x-scheme-handler/about" = "brave-browser.desktop";
|
|
"x-scheme-handler/unknown" = "brave-browser.desktop";
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
DEFAULT_BROWSER = "${pkgs.brave}/bin/brave";
|
|
};
|
|
|
|
}
|