My Nix Configuration
1{ 2 config, 3 lib, 4 pkgs, 5 ... 6}: 7let 8 cfg = config.py.programs.firefox; 9in 10{ 11 options.py.programs.firefox = { 12 enable = lib.mkEnableOption "Firefox configuration"; 13 }; 14 15 config = lib.mkIf cfg.enable { 16 programs.firefox = { 17 enable = true; 18 package = pkgs.firefox; 19 wrapperConfig.cfg = { 20 smartcardSupport = true; 21 pipewireSupport = true; 22 ffmpegSupport = true; 23 }; 24 policies = import ./policies.nix; 25 preferences = import ./extraPrefs.nix; 26 }; 27 }; 28}