helm/modules/desktop/browsers/default.nix
2020-03-29 01:55:14 -04:00

21 lines
391 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
imports = [
./firefox.nix
./qutebrowser.nix
./vivaldi.nix
];
options.modules.desktop.browsers = {
default = mkOption {
type = with types; nullOr str;
default = null;
};
};
config = mkIf (config.modules.desktop.browsers.default != null) {
my.env.BROWSER = config.modules.desktop.browsers.default;
};
}