diff --git a/home/modules/firefox.nix b/home/modules/firefox.nix index b81e32b..93feb80 100644 --- a/home/modules/firefox.nix +++ b/home/modules/firefox.nix @@ -9,23 +9,37 @@ with lib; let in { options.local.apps.firefox = { enable = mkEnableOption "firefox settings"; + + makeDefaultBrowser = mkOption { + type = types.bool; + default = true; + description = '' + Take a guess + ''; + }; }; - config = mkIf cfg.enable { - programs.firefox.enable = true; - xdg = { - mimeApps = { - enable = true; - defaultApplications = { - "text/html" = ["firefox.desktop"]; - "text/uri-list" = ["firefox.desktop"]; - "x-scheme-handler/http" = ["firefox.desktop"]; - "x-scheme-handler/https" = ["firefox.desktop"]; - "x-scheme-handler/about" = ["firefox.desktop"]; - "x-scheme-handler/unknown" = ["firefox.desktop"]; + config = mkIf cfg.enable (mkMerge [ + { + programs.firefox.enable = true; + } + + (mkIf cfg.makeDefaultBrowser { + xdg = { + mimeApps = { + enable = true; + defaultApplications = { + "text/html" = ["firefox"]; + "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}"; + }) + ]); } diff --git a/home/modules/gui/default.nix b/home/modules/gui/default.nix index 1a72ed9..110a835 100644 --- a/home/modules/gui/default.nix +++ b/home/modules/gui/default.nix @@ -61,8 +61,8 @@ in { mimeApps = { enable = true; defaultApplications = { - "application/pdf" = with pkgs; ["qpdfview.desktop"]; - "x-scheme-handler/file" = with pkgs; ["foot.desktop"]; + "application/pdf" = with pkgs; ["qpdfview"]; + "x-scheme-handler/file" = with pkgs; ["foot"]; }; }; }; diff --git a/home/modules/gui/waybar.nix b/home/modules/gui/waybar.nix index 3e4db09..0b1d2c6 100644 --- a/home/modules/gui/waybar.nix +++ b/home/modules/gui/waybar.nix @@ -118,11 +118,11 @@ in { #workspaces button.focused { background: rgba(255, 255, 255, 0.10); color: #ffffff; - box-shadow: inset 0 -2px #ffffff; + border-bottom: 2px solid #ffffff; } #workspaces button.urgent { 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 */ @@ -138,7 +138,7 @@ in { margin: 0; background: rgba(255, 255, 255, 0.10); color: #ffffff; - box-shadow: inset 0 -2px #ffffff; + border-bottom: 2px solid #ffffff; } /* Status modules — keep them flat and compact */ diff --git a/pkgs/default.nix b/pkgs/default.nix index f6189a2..a6e9964 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -6,6 +6,7 @@ with prev.lib; let inherit (final) callPackage fetchpatch; in { + homepage = flakes.homepage.packages.${final.system}.default; override = diff --git a/sys/modules/baseline.nix b/sys/modules/baseline.nix index cfce39f..f1beffe 100644 --- a/sys/modules/baseline.nix +++ b/sys/modules/baseline.nix @@ -61,7 +61,7 @@ in { enableNotifications = true; }; }; - + programs.dconf.enable = true; # Coredumps are a security risk and may use up a lot of disk space diff --git a/sys/modules/borgsync.nix b/sys/modules/borgsync.nix index 709f58d..c5eeddc 100644 --- a/sys/modules/borgsync.nix +++ b/sys/modules/borgsync.nix @@ -24,7 +24,7 @@ in { description = "Remote rsync repository to back up to."; }; }; - + config = mkIf cfg.enable { services.borgbackup.jobs.rsync = { paths = cfg.paths; @@ -57,7 +57,7 @@ in { "--remote-path=borg14" ]; }; - + environment.sessionVariables.BORG_REMOTE_PATH = "borg14"; }; } diff --git a/sys/platforms/vps/default.nix b/sys/platforms/vps/default.nix index 459c80f..e96c67d 100644 --- a/sys/platforms/vps/default.nix +++ b/sys/platforms/vps/default.nix @@ -19,7 +19,7 @@ with lib; { local.sys = { baseline.enable = true; - + borgsync = { enable = true; paths = [