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 =

View file

@ -61,7 +61,7 @@ in {
enableNotifications = true; enableNotifications = true;
}; };
}; };
programs.dconf.enable = true; programs.dconf.enable = true;
# Coredumps are a security risk and may use up a lot of disk space # Coredumps are a security risk and may use up a lot of disk space

View file

@ -24,7 +24,7 @@ in {
description = "Remote rsync repository to back up to."; description = "Remote rsync repository to back up to.";
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.borgbackup.jobs.rsync = { services.borgbackup.jobs.rsync = {
paths = cfg.paths; paths = cfg.paths;
@ -57,7 +57,7 @@ in {
"--remote-path=borg14" "--remote-path=borg14"
]; ];
}; };
environment.sessionVariables.BORG_REMOTE_PATH = "borg14"; environment.sessionVariables.BORG_REMOTE_PATH = "borg14";
}; };
} }

View file

@ -19,7 +19,7 @@ with lib; {
local.sys = { local.sys = {
baseline.enable = true; baseline.enable = true;
borgsync = { borgsync = {
enable = true; enable = true;
paths = [ paths = [