librewolf: Only enable friendlyfox on phone

Fixes an issue where the user interface would break on desktop devices.
This commit is contained in:
Donovan Glover 2024-08-16 00:22:14 -04:00
parent ffb98a9002
commit d012e06731
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 15 additions and 5 deletions

View File

@ -1,6 +1,14 @@
{ pkgs, firefox-addons, ... }:
{
pkgs,
lib,
firefox-addons,
phone,
...
}:
let
inherit (lib) mkIf;
friendlyfox = pkgs.stdenvNoCC.mkDerivation (finalAttrs: {
pname = "mobile-friendly-firefox";
version = "2.11.1";
@ -90,7 +98,7 @@ in
};
};
home.file = {
home.file = mkIf phone {
".librewolf/default/chrome/userChrome.css".source = "${friendlyfox}/userChrome.css";
".librewolf/default/chrome/userContent.css".source = "${friendlyfox}/userContent.css";
};

View File

@ -193,6 +193,7 @@ in
hostName = "mobile-nixos";
stateVersion = "23.11";
mullvad = true;
phone = true;
};
hardware.keyboardBinds = true;

View File

@ -25,7 +25,7 @@ let
mullvad
allowSRB2Port
allowDevPort
hotspot
phone
noRoot
postgres
;
@ -82,7 +82,7 @@ in
postgres = mkEnableOption "postgres database for containers";
allowSRB2Port = mkEnableOption "port for srb2";
allowDevPort = mkEnableOption "port for development server";
hotspot = mkEnableOption "mobile hotspot support";
phone = mkEnableOption "phone support";
};
config = {
@ -192,6 +192,7 @@ in
extraSpecialArgs = {
inherit firefox-addons;
inherit phone;
};
};
@ -249,7 +250,7 @@ in
firewall = {
allowedUDPPorts =
optional hotspot [
optional phone [
67
68
]