1{ config, lib, ... }:
2let
3 cfg = config.py.programs.firefox;
4in
5{
6 options.py.programs.firefox = {
7 enable = lib.mkEnableOption "Firefox configuration";
8 };
9 config = lib.mkIf cfg.enable {
10 programs.firefox = {
11 inherit (cfg) enable;
12 package = null;
13 profiles = {
14 default = {
15 id = 0;
16 isDefault = true;
17 name = "Default";
18 };
19 acc_testing = {
20 id = 1;
21 isDefault = false;
22 name = "Accessibility Testing";
23 };
24 };
25 };
26 };
27}