nixos/homeConfig/modules/browsers/default.nix
2023-06-11 14:20:51 -04:00

21 lines
486 B
Nix

{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.modules.browsers;
in
{ options.modules.browsers = { enable = mkEnableOption "browsers"; };
config = mkIf cfg.enable {
programs.firefox.enable = true;
programs.chromium.enable = true;
home.packages = with pkgs; [
(tor-browser-bundle-bin.override {
useHardenedMalloc = false; # NixOS bug requires this
})
vieb
];
home.file.".config/Vieb/viebrc".source = ./config/viebrc;
};
}