Made firefox the default browser

This commit is contained in:
Alejandro Angulo 2023-12-06 19:27:47 -08:00
parent 26ec076727
commit 9b6cc13430
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 17 additions and 4 deletions

View file

@ -12,5 +12,16 @@ in {
enable = mkEnableOption "firefox";
};
config = mkIf cfg.enable {environment.systemPackages = with pkgs; [firefox];};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [firefox];
aa.home.extraOptions = {
xdg.mimeApps.defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
};
};
};
}

View file

@ -40,9 +40,11 @@ in {
aa.home.extraOptions = {
home.stateVersion = config.system.stateVersion;
home.file = mkAliasDefinitions options.aa.home.file;
xdg.enable = true;
xdg.configFile = mkAliasDefinitions options.aa.home.configFile;
xdg.dataFile = mkAliasDefinitions options.aa.home.dataFile;
xdg = {
enable = true;
configFile = mkAliasDefinitions options.aa.home.configFile;
dataFile = mkAliasDefinitions options.aa.home.dataFile;
};
};
home-manager = {