DashNix/modules/programs/browser/zen.nix

23 lines
467 B
Nix

{
lib,
config,
options,
system,
inputs,
...
}: {
options.mods.browser.zen = {
enable = lib.mkOption {
default = false;
example = true;
type = lib.types.bool;
description = "Enables the zen browser";
};
# TODO configure zen
};
config = lib.mkIf config.mods.browser.zen.enable (
lib.optionalAttrs (options ? home.packages) {
home.packages = [inputs.zen-browser.packages."${system}".default];
}
);
}