a75c64d04a
This puts a hard dependency on 20.09, but that's to be expected.
15 lines
283 B
Nix
15 lines
283 B
Nix
{ options, config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
with lib.my;
|
|
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;
|
|
};
|
|
}
|