Compare commits
3 commits
a739323b41
...
9294335882
| Author | SHA1 | Date | |
|---|---|---|---|
| 9294335882 | |||
| 286fcc67d2 | |||
| f598491ab3 |
7 changed files with 24 additions and 39 deletions
|
|
@ -9,37 +9,23 @@ 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 (mkMerge [
|
config = mkIf cfg.enable {
|
||||||
{
|
programs.firefox.enable = true;
|
||||||
programs.firefox.enable = true;
|
xdg = {
|
||||||
}
|
mimeApps = {
|
||||||
|
enable = true;
|
||||||
(mkIf cfg.makeDefaultBrowser {
|
defaultApplications = {
|
||||||
xdg = {
|
"text/html" = ["firefox.desktop"];
|
||||||
mimeApps = {
|
"text/uri-list" = ["firefox.desktop"];
|
||||||
enable = true;
|
"x-scheme-handler/http" = ["firefox.desktop"];
|
||||||
defaultApplications = {
|
"x-scheme-handler/https" = ["firefox.desktop"];
|
||||||
"text/html" = ["firefox"];
|
"x-scheme-handler/about" = ["firefox.desktop"];
|
||||||
"text/uri-list" = ["firefox"];
|
"x-scheme-handler/unknown" = ["firefox.desktop"];
|
||||||
"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}";
|
||||||
})
|
};
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,8 +61,8 @@ in {
|
||||||
mimeApps = {
|
mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
"application/pdf" = with pkgs; ["qpdfview"];
|
"application/pdf" = with pkgs; ["qpdfview.desktop"];
|
||||||
"x-scheme-handler/file" = with pkgs; ["foot"];
|
"x-scheme-handler/file" = with pkgs; ["foot.desktop"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
border-bottom: 2px solid #ffffff;
|
box-shadow: inset 0 -2px #ffffff;
|
||||||
}
|
}
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
background: rgba(255, 80, 80, 0.25);
|
background: rgba(255, 80, 80, 0.25);
|
||||||
border-bottom: 2px solid #ff5050;
|
box-shadow: inset 0 -2px #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;
|
||||||
border-bottom: 2px solid #ffffff;
|
box-shadow: inset 0 -2px #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Status modules — keep them flat and compact */
|
/* Status modules — keep them flat and compact */
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
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 =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue