{ config, lib, pkgs, ... }: let cfg = config.samfelag.modules.app.firefox; i3Cfg = config.samfelag.modules.desktop.i3; in { options.samfelag.modules.app.firefox = { enable = lib.mkEnableOption "firefox"; }; config = lib.mkIf cfg.enable { environment.systemPackages = with pkgs; [ firefox ]; samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable { "${i3Cfg.mod}+Shift+i" = "exec ${pkgs.firefox}/bin/firefox"; }; hm.programs.firefox = { enable = true; # extensions = with pkgs.nur.repos.rycee.firefox-addons; [ # # See https://nur.nix-community.org/repos/rycee/ # firefox-color # ]; profiles.default = { id = 0; name = "Default"; isDefault = true; }; }; }; }