update firefox module
This commit is contained in:
parent
7854100358
commit
86cf517738
|
@ -5,9 +5,9 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.local.apps.browsers;
|
cfg = config.local.apps.firefox;
|
||||||
in {
|
in {
|
||||||
options.local.apps.browsers = {
|
options.local.apps.firefox = {
|
||||||
enable = mkEnableOption "firefox settings";
|
enable = mkEnableOption "firefox settings";
|
||||||
|
|
||||||
workspace = mkOption {
|
workspace = mkOption {
|
||||||
|
@ -22,6 +22,17 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.firefox.enable = true;
|
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) {
|
xsession.windowManager.i3.config.startup = optional (cfg.workspace != null) {
|
||||||
command = "${lib.getExe pkgs.i3-gaps} 'workspace ${cfg.workspace}; exec ${lib.getExe pkgs.firefox}'";
|
command = "${lib.getExe pkgs.i3-gaps} 'workspace ${cfg.workspace}; exec ${lib.getExe pkgs.firefox}'";
|
||||||
};
|
};
|
||||||
|
|
|
@ -120,7 +120,6 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
"application/pdf" = with pkgs; ["qpdfview"];
|
"application/pdf" = with pkgs; ["qpdfview"];
|
||||||
"text/uri-list" = with pkgs; ["firefox"];
|
|
||||||
"x-scheme-handler/file" = with pkgs; ["kitty"];
|
"x-scheme-handler/file" = with pkgs; ["kitty"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
defaultDesktopPack.enable = true;
|
defaultDesktopPack.enable = true;
|
||||||
firefox = {
|
firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
workspace = 1;
|
workspace = "1"; #make this an int later
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue