This commit is contained in:
Chris Kruining 2024-07-23 18:43:28 +02:00
parent 7e402167b4
commit eff0c1ad83
2 changed files with 262 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{
options,
config,
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.modules.desktop.browsers;
in {
options.modules.desktop.browsers = let
inherit (lib.options) mkOption;
inherit (lib.types) nullOr str;
in {
default = mkOption {
type = nullOr str;
default = null;
description = "Default system browser";
example = "firefox";
};
};
config = mkIf (cfg.default != null) {
home.sessionVariables.BROWSER = cfg.default;
};
}