diff --git a/home/modules/firefox.nix b/home/modules/firefox.nix index e0b1425..ec2c867 100644 --- a/home/modules/firefox.nix +++ b/home/modules/firefox.nix @@ -5,9 +5,9 @@ ... }: with lib; let - cfg = config.local.apps.browsers; + cfg = config.local.apps.firefox; in { - options.local.apps.browsers = { + options.local.apps.firefox = { enable = mkEnableOption "firefox settings"; workspace = mkOption { @@ -22,6 +22,17 @@ in { config = mkIf cfg.enable { programs.firefox.enable = true; + xdg = { + mimeApps = { + enable = true; + defaultApplications = { + "text/uri-list" = with pkgs; ["firefox"]; + "x-scheme-handler/http" = with pkgs; ["firefox"]; + "x-scheme-handler/https" = with pkgs; ["firefox"]; + }; + }; + }; + xsession.windowManager.i3.config.startup = optional (cfg.workspace != null) { command = "${lib.getExe pkgs.i3-gaps} 'workspace ${cfg.workspace}; exec ${lib.getExe pkgs.firefox}'"; }; diff --git a/home/modules/gui/default.nix b/home/modules/gui/default.nix index bca09e9..3869944 100644 --- a/home/modules/gui/default.nix +++ b/home/modules/gui/default.nix @@ -120,7 +120,6 @@ in { enable = true; defaultApplications = { "application/pdf" = with pkgs; ["qpdfview"]; - "text/uri-list" = with pkgs; ["firefox"]; "x-scheme-handler/file" = with pkgs; ["kitty"]; }; }; diff --git a/home/platforms/fabian@posixlycorrect/default.nix b/home/platforms/fabian@posixlycorrect/default.nix index 13167d9..3834d9d 100644 --- a/home/platforms/fabian@posixlycorrect/default.nix +++ b/home/platforms/fabian@posixlycorrect/default.nix @@ -43,7 +43,7 @@ defaultDesktopPack.enable = true; firefox = { enable = true; - workspace = 1; + workspace = "1"; #make this an int later }; };