Update browsers
This commit is contained in:
parent
10adafe703
commit
b72d409a5a
15 changed files with 262 additions and 67 deletions
35
modules/programs/browser/zen.nix
Normal file
35
modules/programs/browser/zen.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
optimization = lib.mkOption {
|
||||
default = "specific";
|
||||
example = "generic";
|
||||
type =
|
||||
with lib.types;
|
||||
(enum [
|
||||
"specific"
|
||||
"generic"
|
||||
]);
|
||||
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}".${config.mods.browser.zen.optimization} ];
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue