Compare commits

..

No commits in common. "92943358826cfb2a2724a584a32bc979392831e5" and "a739323b411167bccbb491e99fad0553b655d565" have entirely different histories.

7 changed files with 39 additions and 24 deletions

View file

@ -9,23 +9,37 @@ with lib; let
in { in {
options.local.apps.firefox = { options.local.apps.firefox = {
enable = mkEnableOption "firefox settings"; enable = mkEnableOption "firefox settings";
makeDefaultBrowser = mkOption {
type = types.bool;
default = true;
description = ''
Take a guess
'';
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable (mkMerge [
programs.firefox.enable = true; {
xdg = { programs.firefox.enable = true;
mimeApps = { }
enable = true;
defaultApplications = { (mkIf cfg.makeDefaultBrowser {
"text/html" = ["firefox.desktop"]; xdg = {
"text/uri-list" = ["firefox.desktop"]; mimeApps = {
"x-scheme-handler/http" = ["firefox.desktop"]; enable = true;
"x-scheme-handler/https" = ["firefox.desktop"]; defaultApplications = {
"x-scheme-handler/about" = ["firefox.desktop"]; "text/html" = ["firefox"];
"x-scheme-handler/unknown" = ["firefox.desktop"]; "text/uri-list" = ["firefox"];
"x-scheme-handler/http" = ["firefox"];
"x-scheme-handler/https" = ["firefox"];
"x-scheme-handler/about" = ["firefox"];
"x-scheme-handler/unknown" = ["firefox"];
};
}; };
}; };
};
home.sessionVariables.DEFAULT_BROWSER = "${lib.getExe pkgs.firefox}"; home.sessionVariables.DEFAULT_BROWSER = "${lib.getExe pkgs.firefox}";
}; })
]);
} }

View file

@ -61,8 +61,8 @@ in {
mimeApps = { mimeApps = {
enable = true; enable = true;
defaultApplications = { defaultApplications = {
"application/pdf" = with pkgs; ["qpdfview.desktop"]; "application/pdf" = with pkgs; ["qpdfview"];
"x-scheme-handler/file" = with pkgs; ["foot.desktop"]; "x-scheme-handler/file" = with pkgs; ["foot"];
}; };
}; };
}; };

View file

@ -118,11 +118,11 @@ in {
#workspaces button.focused { #workspaces button.focused {
background: rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.10);
color: #ffffff; color: #ffffff;
box-shadow: inset 0 -2px #ffffff; border-bottom: 2px solid #ffffff;
} }
#workspaces button.urgent { #workspaces button.urgent {
background: rgba(255, 80, 80, 0.25); background: rgba(255, 80, 80, 0.25);
box-shadow: inset 0 -2px #ff5050; border-bottom: 2px solid #ff5050;
} }
/* Focused window title: single line, no glow */ /* Focused window title: single line, no glow */
@ -138,7 +138,7 @@ in {
margin: 0; margin: 0;
background: rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.10);
color: #ffffff; color: #ffffff;
box-shadow: inset 0 -2px #ffffff; border-bottom: 2px solid #ffffff;
} }
/* Status modules keep them flat and compact */ /* Status modules keep them flat and compact */

View file

@ -6,6 +6,7 @@
with prev.lib; let with prev.lib; let
inherit (final) callPackage fetchpatch; inherit (final) callPackage fetchpatch;
in { in {
homepage = flakes.homepage.packages.${final.system}.default; homepage = flakes.homepage.packages.${final.system}.default;
override = override =