32 lines
602 B
Nix
32 lines
602 B
Nix
{ config, lib, inputs, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.firefox;
|
|
ext = inputs.firefox-addons.packages.${pkgs.system};
|
|
in
|
|
{
|
|
options = {
|
|
firefox.enable = lib.mkEnableOption "enable firefox module";
|
|
};
|
|
|
|
config.programs.firefox = lib.mkIf cfg.enable {
|
|
enable = true;
|
|
profiles.default = {
|
|
|
|
bookmarks = [
|
|
{
|
|
name = "Wikipedia";
|
|
tags = ["wiki"];
|
|
url = "https://en.wikipedia.org";
|
|
}
|
|
];
|
|
|
|
extensions = [
|
|
# ext."1password-x-password-manager"
|
|
ext.ublock-origin
|
|
ext.plasma-integration
|
|
];
|
|
};
|
|
};
|
|
}
|