Strengthen Firefox

This commit is contained in:
greg-compass
2022-11-30 10:36:57 -06:00
parent 20b37bd47c
commit b8b3a2b86c
3 changed files with 6 additions and 5 deletions
Generated
+3 -3
View File
@@ -44,11 +44,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1667610227, "lastModified": 1669769690,
"narHash": "sha256-2olA2HYnz07rjDq3lMqCmDRlSegp1WL4OqR3KSy3Hy4=", "narHash": "sha256-4EWH+awS1714npXmBMNrMS5jPU2QQ1PXWex49RNgjuM=",
"owner": "bandithedoge", "owner": "bandithedoge",
"repo": "nixpkgs-firefox-darwin", "repo": "nixpkgs-firefox-darwin",
"rev": "78d9f25b7816f5711f80093721cf6618cda3e1c0", "rev": "e8e0fd1f10b02c276a1a446e7ffd4f9c64613f5a",
"type": "github" "type": "github"
}, },
"original": { "original": {
+1 -1
View File
@@ -2,7 +2,7 @@
let let
# For now, we ignore this and don't install it # For now, we ignore this and don't install it
ffPkgs = if ( lib.hasSuffix "-darwin" pkgs.system ) ffPkgs = if ( pkgs.stdenv.hostPlatform.isDarwin )
then pkgs.firefox-bin then pkgs.firefox-bin
else pkgs.firefox-wayland.override { cfg.enableGnomeExtensions = true; }; else pkgs.firefox-wayland.override { cfg.enableGnomeExtensions = true; };
+2 -1
View File
@@ -30,9 +30,10 @@ if [ "$(uname -s)" == "Darwin" ]; then
cd ~/.nix-profile/Applications cd ~/.nix-profile/Applications
for app in *.app; do for app in *.app; do
echo "Updating permissions on '${app}'" echo "Updating permissions on '${app}'"
mkdir -p "${HOME}/Applications/${app}"
chmod -R u+w "${HOME}/Applications/${app}" || true chmod -R u+w "${HOME}/Applications/${app}" || true
echo "Copying new version to Applications" echo "Copying new version to Applications"
rsync -rptgoDv "${app}" "${HOME}/Applications" 2>&1 > /dev/null || true rsync -rptgoDv "${app}/" "${HOME}/Applications/${app}/" 2>&1 > /dev/null || true
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
echo "An error occurred, proceeding anyway" echo "An error occurred, proceeding anyway"
fi fi