29 current 2025-04-29 02:34:34 25.05.20250424.f771eb4 6.12.24 *
This commit is contained in:
@@ -1,8 +1,17 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
|
osConfig,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
# osConfig carries config from configuration.nix
|
||||||
|
scale =
|
||||||
|
if osConfig.res == "1366x768"
|
||||||
|
then 0.80
|
||||||
|
else if osConfig.res == "2560x1440"
|
||||||
|
then 1.25
|
||||||
|
else 1.00;
|
||||||
|
in {
|
||||||
home.activation.copyStartpage = lib.mkAfter ''
|
home.activation.copyStartpage = lib.mkAfter ''
|
||||||
mkdir -p ~/.firefox-startpage
|
mkdir -p ~/.firefox-startpage
|
||||||
cp -r ${./startpage}/* ~/.firefox-startpage/
|
cp -r ${./startpage}/* ~/.firefox-startpage/
|
||||||
@@ -121,7 +130,7 @@
|
|||||||
"mousewheel.with_control.action" = "1";
|
"mousewheel.with_control.action" = "1";
|
||||||
|
|
||||||
# should change this based on your resolution
|
# should change this based on your resolution
|
||||||
"layout.css.devPixelsPerPx" = 1.25;
|
"layout.css.devPixelsPerPx" = scale;
|
||||||
|
|
||||||
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
|
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
|
||||||
"full-screen-api.ignore-widgets" = true;
|
"full-screen-api.ignore-widgets" = true;
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
font-0 = "NotoSans-Regular:size=9;2.5"
|
font-0 = "NotoSans-Regular:size=9;2.5"
|
||||||
font-1 = "JetBrainsMono Nerd Font:style=Regular:size=9;2.5"
|
font-1 = "JetBrainsMono Nerd Font:style=Regular:size=9;2.5"
|
||||||
font-2 = "Noto Sans Symbols:size=9;1"
|
font-2 = "Noto Sans Symbols:size=9;1"
|
||||||
offset-x = 4
|
offset-x = 2
|
||||||
offset-y = 2
|
offset-y = 2
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
@@ -38,9 +38,6 @@ in {
|
|||||||
inherit config pkgs lib;
|
inherit config pkgs lib;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
# users.synchronous = import ../../home/home.nix {
|
|
||||||
# inherit config lib pkgs;
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
res = "1366x768";
|
res = "1366x768";
|
||||||
|
|||||||
Reference in New Issue
Block a user