More robust config for default firefox browser
This commit is contained in:
parent
cf4159a6da
commit
562100bad2
2 changed files with 26 additions and 8 deletions
|
@ -6,6 +6,7 @@ let machine = ./machines/chupacabra.nix; in
|
|||
./modules/alacritty.nix
|
||||
./modules/emacs.nix
|
||||
./modules/email.nix
|
||||
./modules/firefox.nix
|
||||
./modules/i3.nix
|
||||
./modules/shell.nix
|
||||
./modules/vim.nix
|
||||
|
@ -87,17 +88,12 @@ let machine = ./machines/chupacabra.nix; in
|
|||
|
||||
impure.clonedRepos.passwordStore = {
|
||||
github = "glittershark/pass";
|
||||
path = ".password-store";
|
||||
path = ".local/share/password-store";
|
||||
};
|
||||
|
||||
urbint.projectPath = "code/urb";
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"text/html" = [ "firefox.desktop" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
22
home/modules/firefox.nix
Normal file
22
home/modules/firefox.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
xdg.mimeApps = rec {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"text/html" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/http" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/https" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/ftp" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/chrome" = [ "firefox.desktop" ];
|
||||
"application/x-extension-htm" = [ "firefox.desktop" ];
|
||||
"application/x-extension-html" = [ "firefox.desktop" ];
|
||||
"application/x-extension-shtml" = [ "firefox.desktop" ];
|
||||
"application/xhtml+xml" = [ "firefox.desktop" ];
|
||||
"application/x-extension-xhtml" = [ "firefox.desktop" ];
|
||||
"application/x-extension-xht" = [ "firefox.desktop" ];
|
||||
};
|
||||
associations.added = defaultApplications;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue