Add zen and librewolf configuration
This commit is contained in:
parent
dc83628ac9
commit
1886700857
10 changed files with 219 additions and 62 deletions
29
modules/programs/browser/librewolf.nix
Normal file
29
modules/programs/browser/librewolf.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
options,
|
||||
...
|
||||
}: {
|
||||
options.mods.browser.librewolf = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
description = "Enables the librwolf browser";
|
||||
};
|
||||
settings = lib.mkOption {
|
||||
default = {};
|
||||
example = {};
|
||||
type = with lib.types; attrsOf anything;
|
||||
description = "librewolf settings";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.mods.browser.librewolf.enable (
|
||||
lib.optionalAttrs (options ? home.packages) {
|
||||
programs.librewolf = {
|
||||
enable = true;
|
||||
settings = config.mods.browser.librewolf.settings;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue