move brave + filetypes
This commit is contained in:
parent
fa52813d59
commit
82fda2d900
3 changed files with 33 additions and 1 deletions
|
@ -110,7 +110,6 @@
|
|||
|
||||
nix-output-monitor
|
||||
|
||||
brave
|
||||
gparted
|
||||
arandr
|
||||
|
||||
|
|
1
home.nix
1
home.nix
|
@ -29,6 +29,7 @@
|
|||
|
||||
feh
|
||||
imagemagick
|
||||
brave
|
||||
];
|
||||
|
||||
home.file = { };
|
||||
|
|
32
home/modules/filetypes.nix
Normal file
32
home/modules/filetypes.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.snowhawk.defaultPrograms;
|
||||
in {
|
||||
options.snowhawk.defaultPrograms = {
|
||||
enable = lib.mkEnableOption "default programs";
|
||||
};
|
||||
config = cfg.enable {
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
# Firefox
|
||||
"application/pdf" = "brave-browser.desktop";
|
||||
"application/x-extension-htm" = "brave-browser.desktop";
|
||||
"application/x-extension-html" = "brave-browser.desktop";
|
||||
"application/x-extension-shtml" = "brave-browser.desktop";
|
||||
"application/x-extension-xht" = "brave-browser.desktop";
|
||||
"application/x-extension-xhtml" = "brave-browser.desktop";
|
||||
"application/xhtml+xml" = "brave-browser.desktop";
|
||||
"text/html" = "brave-browser.desktop";
|
||||
"x-scheme-handler/about" = "brave-browser.desktop";
|
||||
"x-scheme-handler/chrome" = "brave-browser.desktop";
|
||||
"x-scheme-handler/http" = "brave-browser.desktop";
|
||||
"x-scheme-handler/https" = "brave-browser.desktop";
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
DEFAULT_BROWSER = "${pkgs.brave}/bin/brave";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue