Made firefox the default browser
This commit is contained in:
parent
26ec076727
commit
9b6cc13430
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue