{ config, lib, ... }: let cfg = config.py.programs.firefox; in { options.py.programs.firefox = { enable = lib.mkEnableOption "Firefox configuration"; }; config = lib.mkIf cfg.enable { programs.firefox = { inherit (cfg) enable; package = null; profiles = { default = { id = 0; isDefault = true; name = "Default"; }; acc_testing = { id = 1; isDefault = false; name = "Accessibility Testing"; }; }; }; }; }