create firefox module

This commit is contained in:
Luj 2023-11-28 13:22:33 +01:00
parent 1541d64080
commit 9a707302c3
Signed by: luj
GPG key ID: 6FC74C847011FD83
4 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ config, pkgs, lib, ... }:
let
cfg = config.luj.programs.firefox;
in
with lib;
{
options.luj.programs.firefox = {
enable = mkEnableOption "Enable Firefox";
};
config = mkIf cfg.enable {
programs.firefox = {
enable = true;
package = pkgs.firefox-esr;
profiles.default = {
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
bitwarden
ublock-origin
];
};
};
};
}