helm/modules/desktop/browsers/default.nix

15 lines
283 B
Nix
Raw Normal View History

{ options, config, lib, pkgs, ... }:
2020-03-28 22:48:43 -07:00
with lib;
with lib.my;
let cfg = config.modules.desktop.browsers;
in {
2020-03-28 22:48:43 -07:00
options.modules.desktop.browsers = {
default = mkOpt (with types; nullOr str) null;
2020-03-28 22:48:43 -07:00
};
config = mkIf (cfg.default != null) {
env.BROWSER = cfg.default;
2020-03-28 22:48:43 -07:00
};
}