15 lines
306 B
Nix
15 lines
306 B
Nix
{ options, config, lib, pkgs, ... }:
|
|
with lib;
|
|
with lib.custom;
|
|
let
|
|
cfg = config.modules.desktop.browsers;
|
|
in {
|
|
options.modules.desktop.browsers = {
|
|
default = mkOpt (with types; nullOr str) null;
|
|
};
|
|
|
|
config = mkIf (cfg.default != null) {
|
|
env.BROWSER = cfg.default;
|
|
};
|
|
}
|