feat: update firefox to 119

This commit is contained in:
matt1432 2023-10-26 00:35:24 -04:00
parent c6ffaf1b54
commit 51b33d4ab1
6 changed files with 98 additions and 101 deletions

View file

@ -32,35 +32,41 @@ in
neovim = { neovim = {
enable = true; enable = true;
defaultEditor = true;
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
package = pkgs.neovim-nightly; package = pkgs.neovim-nightly;
extraConfig = builtins.concatStringsSep "\n" [ extraConfig = with lib.strings; ''
(lib.strings.fileContents ./config/base.vim) ${fileContents ./config/base.vim}
'' '';
lua << EOF
${lib.strings.fileContents ./config/config.lua}
EOF
''
];
extraLuaConfig = with lib.strings; ''
${fileContents ./config/config.lua}
'';
withNodeJs = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
tree-sitter
nodejs_latest nodejs_latest
nodePackages.npm
nodePackages.neovim
gradle gradle
bat
stylelint
python311Packages.pylint bat
stylelint
nil nil
]; ];
extraPython3Packages = with pkgs.python311Packages; [
pylint
];
coc = { coc = {
enable = true; enable = true;
settings = { settings = {
"colors.enable" = true; "colors.enable" = true;
"coc.preferences.formatOnType" = true; "coc.preferences.formatOnType" = true;
"inlayHint.enable" = false;
"eslint.format.enable" = true; "eslint.format.enable" = true;
"eslint.autoFixOnSave" = true; "eslint.autoFixOnSave" = true;
@ -123,15 +129,15 @@ in
fzfWrapper fzfWrapper
fzf-vim fzf-vim
nvim-treesitter.withAllGrammars
nvim-treesitter nvim-treesitter
nvim-treesitter.withAllGrammars
nvim-autopairs nvim-autopairs
dracula-nvim dracula-nvim
(plugin "lukas-reineke" (plugin "lukas-reineke"
"indent-blankline.nvim" "indent-blankline.nvim"
"0fe34b4c1b926e106d105d3ae88ef6cbf6743572" "046e2cf04e08ece927bacbfb87c5b35c0b636546"
"sha256-e8gn4pJYALaQ6sGA66SFf8p6VLJBPxT/BimQhOd5eBs=") "sha256-bhoep8aTYje5K/dZ/XmpwBPn4PBEMPrmw33QJdfFe6M=")
gitsigns-nvim gitsigns-nvim
lualine-nvim lualine-nvim
(plugin "echasnovski" (plugin "echasnovski"

View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1698254710, "lastModified": 1698279263,
"narHash": "sha256-1wwckx7Cp1XWRIMsYE3FZss3l7VWYQoFEv428mtTokg=", "narHash": "sha256-NVtdt2F1Hcd0g76wj1fgcsyRV6KCHrVyDKAI8a0sKlU=",
"owner": "Aylur", "owner": "Aylur",
"repo": "ags", "repo": "ags",
"rev": "e98c6446e6f4cbbc94edd97073f8c2b1dd753f99", "rev": "59377ec1eb48887a41b596f9ecf125013f213383",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -258,11 +258,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1698255124, "lastModified": 1698282310,
"narHash": "sha256-lnQGi8Op8/RkvCBBaDT71+u8VAYl5dFU54Fw/D6x8nA=", "narHash": "sha256-9n9+7qvhSKU+3mwY7h2Btr2lOT83r/VHWuk7XgaUKhI=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "6650e4ba85568a687b1de79eb7375cabfa68e848", "rev": "07714dd5bd9ff60e10170e11b535409e1bbc92ef",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -325,11 +325,11 @@
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1698138555, "lastModified": 1698277349,
"narHash": "sha256-HOzLvbRnHtpNQJJN52JYKnTm0d9K508QKsEFLbxjRHk=", "narHash": "sha256-uEBZSQEn4mDowhdH0QIDGORFtzqY7y4K+bZpiSRc6x0=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "1094d0c0dbd0f37ccc0f1d18c73c6066e5690664", "rev": "f2fc44550fbe5b7ebfedc2b155dc41e93f49aedb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -345,14 +345,16 @@
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"hercules-ci-effects": "hercules-ci-effects", "hercules-ci-effects": "hercules-ci-effects",
"neovim-flake": "neovim-flake", "neovim-flake": "neovim-flake",
"nixpkgs": "nixpkgs_2" "nixpkgs": [
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1698192055, "lastModified": 1698278488,
"narHash": "sha256-YC5IWqMTwdFxrIWYfdhW3SWmb356VtzcXt8fc49PCos=", "narHash": "sha256-wIAyepCJao8wqKi1Pi9014r7rc7dHxkwdlfE92XFMjM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "d3ea1553487b52fe7603c830994475f51cd619db", "rev": "11e493ce9fdab9bf7462c5a343a940858387b35a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -386,7 +388,7 @@
"nix-eval-jobs": { "nix-eval-jobs": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_5", "flake-parts": "flake-parts_5",
"nixpkgs": "nixpkgs_5", "nixpkgs": "nixpkgs_4",
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
@ -421,7 +423,7 @@
"nix-gaming": { "nix-gaming": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_4", "flake-parts": "flake-parts_4",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1698109854, "lastModified": 1698109854,
@ -444,11 +446,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1698256525, "lastModified": 1698268001,
"narHash": "sha256-Yu4kCGLpFYnRk8YabNTKcubvtmiHG5w+LZzd81P0S5Y=", "narHash": "sha256-eEuToIWGxCR33bPovd3N0epA5C0sYMmAJ8tfXZHbSn8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-melt", "repo": "nix-melt",
"rev": "08ca0b2cc2bc33ad921962e33edbdf7a9236a1ff", "rev": "024ef7da4da4665d1c83564e223c56c039cadf42",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -459,11 +461,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1697723726, "lastModified": 1698134075,
"narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=", "narHash": "sha256-foCD+nuKzfh49bIoiCBur4+Fx1nozo+4C/6k8BYk4sg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7c9cc5a6e5d38010801741ac830a3f8fd667a7a0", "rev": "8efd5d1e283604f75a808a20e6cde0ef313d07d4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -529,14 +531,14 @@
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
"lib-aggregate": "lib-aggregate", "lib-aggregate": "lib-aggregate",
"nix-eval-jobs": "nix-eval-jobs", "nix-eval-jobs": "nix-eval-jobs",
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_5"
}, },
"locked": { "locked": {
"lastModified": 1698254019, "lastModified": 1698268396,
"narHash": "sha256-qxwCFqhaxqtkZJPzUxIWhg/Ydy77Gf9ICZLu6IrGIhU=", "narHash": "sha256-E4++3+TMybScXB+HkzQ+A7zxHPsbDpkU68x00uWR9mk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs-wayland", "repo": "nixpkgs-wayland",
"rev": "1b4898bdadbe0f6ae0dee95b2055be32d123366a", "rev": "86f4d7375a30cf2f876334d9f59238b90c9772a2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -546,22 +548,6 @@
} }
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1697915759,
"narHash": "sha256-WyMj5jGcecD+KC8gEs+wFth1J1wjisZf8kVZH13f1Zo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "51d906d2341c9e866e48c2efcaac0f2d70bfd43e",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1697886341, "lastModified": 1697886341,
"narHash": "sha256-AdE67xPty9M9wn36nPVp6aDntIdigrs7UbyaGv1VAaM=", "narHash": "sha256-AdE67xPty9M9wn36nPVp6aDntIdigrs7UbyaGv1VAaM=",
@ -577,13 +563,13 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_4": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1697723726, "lastModified": 1698134075,
"narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=", "narHash": "sha256-foCD+nuKzfh49bIoiCBur4+Fx1nozo+4C/6k8BYk4sg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7c9cc5a6e5d38010801741ac830a3f8fd667a7a0", "rev": "8efd5d1e283604f75a808a20e6cde0ef313d07d4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -593,7 +579,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_5": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1697677194, "lastModified": 1697677194,
"narHash": "sha256-lN2eJCsOzjhxrvTQsNcW7r0E9hMJ7ABrKDQWpmYFRkM=", "narHash": "sha256-lN2eJCsOzjhxrvTQsNcW7r0E9hMJ7ABrKDQWpmYFRkM=",
@ -609,13 +595,13 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_6": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1697723726, "lastModified": 1698134075,
"narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=", "narHash": "sha256-foCD+nuKzfh49bIoiCBur4+Fx1nozo+4C/6k8BYk4sg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7c9cc5a6e5d38010801741ac830a3f8fd667a7a0", "rev": "8efd5d1e283604f75a808a20e6cde0ef313d07d4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -627,11 +613,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1698253808, "lastModified": 1698291781,
"narHash": "sha256-00mJdl0SYfSO/zQYpOaBV3sSZfQbl8cahI7CewTbEtA=", "narHash": "sha256-FxVdeVL8HJEZdzR0eJam02LYncTXlC3yEJAHaZ2/7Jo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "923a29e2916f1d2589d933018b80b9ca2c4e39be", "rev": "c551e2a67a36e5bcc713ed1c71456fc4b9e24b96",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -670,7 +656,7 @@
"nh": "nh", "nh": "nh",
"nix-gaming": "nix-gaming", "nix-gaming": "nix-gaming",
"nix-melt": "nix-melt", "nix-melt": "nix-melt",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_3",
"nixpkgs-wayland": "nixpkgs-wayland", "nixpkgs-wayland": "nixpkgs-wayland",
"nur": "nur", "nur": "nur",
"nurl": "nurl" "nurl": "nurl"

View file

@ -23,7 +23,10 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay"; neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
nh = { nh = {
url = "github:viperML/nh"; url = "github:viperML/nh";

View file

@ -4,31 +4,32 @@
display: none !important; display: none !important;
} }
#appMenu-popup { /* https://github.com/Godiesc/firefox-gx/blob/main/Tricks/README.md */
position: fixed !important; /* Extensions button into the "left-sidebar" - Immovable */
top: 0px !important;
left: 0px !important; :root:not([chromehidden~="toolbar"],[sizemode="fullscreen"]) #PersonalToolbar {
margin: 0 !important; --padding-top-left-sidebar: 110px !important; /* 182px to one-line config */
} }
#appMenu-popup panelview { :root:not([chromehidden~="toolbar"], [sizemode="fullscreen"]) #unified-extensions-button {
border-width: 2px 6px !important; --toolbarbutton-hover-background: transparent !important;
border-radius: 5% 0 0 5% !important; --toolbarbutton-active-background: transparent !important;
border-image: var(--panel-separator-zap-gradient4) 1 !important; position: fixed;
display: flex;
top: 50px !important;
left: inherit !important;
z-index: 2 !important;
fill: var(--general-color) !important;
width: calc(var(--uc-vertical-toolbar-width) - 4px) !important;
} }
#unified-extensions-panel panelview { :root:not([chromehidden~="toolbar"], [sizemode="fullscreen"]) #unified-extensions-button:hover,
border-width: 0 !important; :root:not([chromehidden~="toolbar"], [sizemode="fullscreen"]) #unified-extensions-button[open] {
border-radius: 0px !important; transform: scale(1.12) !important;
transition: ease-in-out !important;
} }
slot { :root:not([chromehidden~="toolbar"], [sizemode="fullscreen"]) #unified-extensions-button:active {
margin: 0 !important; transform: scale(1.0) !important;
border-radius: 5% 0 0 5% !important; transition-duration: 0ms !important;
}
@media screen {
:root:not([chromehidden~="toolbar"]) #PersonalToolbar {
margin-top: -106.5px !important;
}
} }

View file

@ -25,12 +25,20 @@ in
extraConfig = builtins.readFile "${firefox-gx}/user.js"; extraConfig = builtins.readFile "${firefox-gx}/user.js";
settings = { settings = {
# Theme
"firefoxgx.tab-shapes" = true;
"firefoxgx.left-sidebar" = true;
"userChrome.tab.bottom_rounded_corner" = true;
"userChrome.tab.bottom_rounded_corner.wave" = false;
"userChrome.tab.bottom_rounded_corner.australis" = true;
# Open previous windows and tabs # Open previous windows and tabs
"browser.startup.page" = 3; "browser.startup.page" = 3;
# Prefs # Prefs
"layout.css.devPixelsPerPx" = 1.12; "layout.css.devPixelsPerPx" = 1.12;
"browser.tabs.firefox-view" = false; "browser.tabs.firefox-view" = false;
"browser.tabs.firefox-view-next" = false;
"browser.search.widget.inNavBar" = true; "browser.search.widget.inNavBar" = true;
"browser.toolbars.bookmarks.visibility" = "always"; "browser.toolbars.bookmarks.visibility" = "always";
"browser.toolbars.bookmarks.showInPrivateBrowsing" = true; "browser.toolbars.bookmarks.showInPrivateBrowsing" = true;

View file

@ -1,7 +1,7 @@
{ lib, stdenvNoCC, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let let
pname = "firefox-gx"; pname = "firefox-gx";
version = "8.4"; version = "8.5";
in in
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation {
inherit pname version; inherit pname version;
@ -10,24 +10,17 @@ stdenvNoCC.mkDerivation {
owner = "Godiesc"; owner = "Godiesc";
repo = pname; repo = pname;
rev = "v.${version}"; rev = "v.${version}";
sha256 = "sha256-Izb2dLIThLAXJ+Z6fNyRli3v3kV1upyDY0wA2VNVi+o="; sha256 = "sha256-llffq16PZz5GxkLIJDeWN1d04SCCJFqwCLzOrxgwhYI=";
}; };
installPhase = '' installPhase = ''
# Personal changes # Personal changes
sed -i 's/var(--fuchsia))/var(--purple))/' ./chrome/components/ogx_root-personal.css sed -i 's/var(--fuchsia))/var(--purple))/' ./chrome/components/ogx_root-personal.css
# Fix new tab background for nix
substituteInPlace ./chrome/components/ogx_root-personal.css \ substituteInPlace ./chrome/components/ogx_root-personal.css \
--replace '../images/newtab/wallpaper-dark.png' "$out/chrome/images/newtab/private-dark.png" --replace '../images/newtab/wallpaper-dark.png' "$out/chrome/images/newtab/private-dark.png"
mv ./Extras/Tab-Shapes/ogx_tab-shapes.css ./chrome/components
rm ./user.js
mv ./Extras/Tab-Shapes/user.js ./
sed -i 's/rounded_corner.chrome", true/rounded_corner.chrome", false/' ./user.js
sed -i 's/rounded_corner.wave", false/rounded_corner.wave", true/' ./user.js
mv ./Extras/Left-SideBar/ogx_left-sidebar.css ./chrome/components
mkdir -p $out mkdir -p $out
cp -r ./* $out cp -r ./* $out
''; '';