mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
librewolf: Only enable friendlyfox on phone
Fixes an issue where the user interface would break on desktop devices.
This commit is contained in:
parent
ffb98a9002
commit
d012e06731
@ -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";
|
||||
};
|
||||
|
@ -193,6 +193,7 @@ in
|
||||
hostName = "mobile-nixos";
|
||||
stateVersion = "23.11";
|
||||
mullvad = true;
|
||||
phone = true;
|
||||
};
|
||||
|
||||
hardware.keyboardBinds = true;
|
||||
|
@ -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
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user