home/qutebrowser: wrap in firejail
This commit is contained in:
parent
3d6b1cdd84
commit
9e9d70785b
@ -5,6 +5,11 @@
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
qutebrowser_firejail = pkgs.writeShellScriptBin "qutebrowser" ''
|
||||
firejail -- ${pkgs.qutebrowser}/bin/qutebrowser "$@"
|
||||
'';
|
||||
in
|
||||
with lib; {
|
||||
imports = [./zsh.nix ./i3status-rust.nix ./sway.nix ./i3.nix ./home_packages.nix ./whatsapp-for-linux.nix];
|
||||
|
||||
@ -28,7 +33,7 @@ with lib; {
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
home.sessionVariables = rec {
|
||||
BROWSER = "${pkgs.qutebrowser}/bin/qutebrowser";
|
||||
BROWSER = "${qutebrowser_firejail}/bin/qutebrowser";
|
||||
DEFAULT_BROWSER = "${BROWSER}";
|
||||
EDITOR = "nvim";
|
||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||
@ -140,7 +145,7 @@ with lib; {
|
||||
|
||||
qutebrowser = {
|
||||
enable = true;
|
||||
package = pkgs.qutebrowser.override {enableVulkan = false;};
|
||||
package = qutebrowser_firejail;
|
||||
keyBindings = {
|
||||
normal = {
|
||||
"j" = "scroll-px 0 25";
|
||||
|
Loading…
Reference in New Issue
Block a user