Commit Graph

846 Commits

Author SHA1 Message Date
luisnquin
ef951ed2d9 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1763780165 2025-11-22 03:05:14 +00:00
luisnquin
34fd0de7ce chore(update): beta @ x86_64 && aarch64 to 1.17.8b 2025-11-20 18:30:26 +00:00
luisnquin
a0a29968bc chore(update): twilight @ x86_64 && aarch64 to 1.18t#1763614259 2025-11-20 05:20:19 +00:00
luisnquin
24d7381b92 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1763521080 2025-11-19 03:12:25 +00:00
Luis Quiñones
ef2802d95f readme: add missing home-manager input override (#171) 2025-11-18 20:11:33 -05:00
luisnquin
85bc80b9d8 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1763455189 2025-11-18 09:23:19 +00:00
luisnquin
7463345c68 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1763352037 2025-11-17 04:26:59 +00:00
luisnquin
db2be18049 chore(update): beta @ x86_64 && aarch64 to 1.17.7b 2025-11-16 18:17:01 +00:00
luisnquin
232199e68c chore(update): twilight @ x86_64 && aarch64 to 1.18t#1763308955 2025-11-16 16:22:39 +00:00
luisnquin
b9930dc433 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1763290521 2025-11-16 11:15:54 +00:00
luisnquin
9c60d42e50 chore(update): beta @ x86_64 && aarch64 to 1.17.6b 2025-11-16 03:18:32 +00:00
luisnquin
ddc2dbc0b1 chore(update): beta @ x86_64 && aarch64 to 1.17.7b 2025-11-16 01:44:04 +00:00
Luis Quiñones
0bfb393981 ci: add workflow to revert last beta update (#169) 2025-11-15 08:49:27 -05:00
github-actions[bot]
85d439e2c3 chore: update inputs (#167)
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/b959c67241cae17fc9e4ee7eaf13dfa8512477ea?narHash=sha256-0ptUDbYwxv1kk/uzEX4%2BNJjY2e16MaAhtzAOJ6K0TG0%3D' (2025-11-05)
  → 'github:nix-community/home-manager/827f2a23373a774a8805f84ca5344654c31f354b?narHash=sha256-RYHN8O/Aja59XDji6WSJZPkJpYVUfpSkyH%2BPEupBJqM%3D' (2025-11-12)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/b3d51a0365f6695e7dd5cdf3e180604530ed33b4?narHash=sha256-4vhDuZ7OZaZmKKrnDpxLZZpGIJvAeMtK6FKLJYUtAdw%3D' (2025-11-02)
  → 'github:nixos/nixpkgs/c5ae371f1a6a7fd27823bc500d9390b38c05fa55?narHash=sha256-4PqRErxfe%2B2toFJFgcRKZ0UI9NSIOJa%2B7RXVtBhy4KE%3D' (2025-11-12)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-14 20:45:03 -05:00
luisnquin
a6e5d38e0d chore(update): twilight @ x86_64 && aarch64 to 1.18t#1763155038 2025-11-14 21:19:04 +00:00
luisnquin
479ca480bf chore(update): twilight @ x86_64 && aarch64 to 1.18t#1763094552 2025-11-14 05:20:15 +00:00
luisnquin
eff1c79c78 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1763004901 2025-11-13 04:26:14 +00:00
luisnquin
d03a5917ae chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762900512 2025-11-11 23:18:49 +00:00
luisnquin
51f5194aff chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762832899 2025-11-11 04:25:17 +00:00
luisnquin
02bb5919da chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762747996 2025-11-10 04:27:44 +00:00
luisnquin
f0c7e6dafa chore(update): beta @ x86_64 && aarch64 to 1.17.6b 2025-11-09 20:57:30 +00:00
Luis Quiñones
c5deb45bf5 revert: "chore(update): beta @ x86_64 && aarch64 to 1.17.6b" (#164)
Closes https://github.com/0xc000022070/zen-browser-flake/issues/163.

This reverts commit e01a55085d.
2025-11-09 15:56:48 -05:00
luisnquin
1bea5e777d chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762662614 2025-11-09 05:18:35 +00:00
luisnquin
e01a55085d chore(update): beta @ x86_64 && aarch64 to 1.17.6b 2025-11-08 20:54:34 +00:00
Luis Quiñones
00fe630272 revert: "chore(update): beta @ x86_64 && aarch64 to 1.17.6b" (#162)
Closes https://github.com/0xc000022070/zen-browser-flake/issues/161.

This reverts commit 40598467ca.
2025-11-08 15:53:32 -05:00
luisnquin
5ba60c02a6 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762573636 2025-11-08 04:22:35 +00:00
Luis Quiñones
e75282c59a ci: add workflow to update inputs every two weeks (#160) 2025-11-07 22:50:36 -05:00
Luis Quiñones
17d6337643 ci: improve code quality workflow (#159) 2025-11-07 22:40:52 -05:00
luisnquin
40598467ca chore(update): beta @ x86_64 && aarch64 to 1.17.6b 2025-11-07 18:28:27 +00:00
recallmenot
5499dafb94 readme: add example script to simplify finding extension name and id (#158) 2025-11-07 09:17:16 -05:00
luisnquin
e774c64217 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762493479 2025-11-07 06:31:06 +00:00
Luis Quiñones
45b88a529b revert: "fix(package): ensure both bin symlinks point directly to the zen bina…" (#157)
Closes https://github.com/0xc000022070/zen-browser-flake/issues/156.

This reverts commit dd340331f6.
2025-11-06 21:35:08 -05:00
luisnquin
a3a22c5ad4 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762402939 2025-11-06 04:26:56 +00:00
Luis Quiñones
dd340331f6 fix(package): ensure both bin symlinks point directly to the zen binary (#155)
Related to https://github.com/0xc000022070/zen-browser-flake/issues/63.
2025-11-05 21:30:34 -05:00
Luis Quiñones
03a32e6af0 readme: add note for macOS users about policies option (#154)
Closes https://github.com/0xc000022070/zen-browser-flake/issues/104.

Huge thanks to @retX0 and @emonadeo for their help!
2025-11-05 21:18:30 -05:00
Luis Quiñones
fe8ae759ef refactor(hm-module): remove unused var (#153) 2025-11-05 20:54:25 -05:00
Luis Quiñones
8c6c037d72 flake-update: nixpkgs & home-manager @ latest git (#152)
Reason: https://github.com/0xc000022070/zen-browser-flake/issues/104#issuecomment-3492408428.
2025-11-05 12:28:12 -05:00
Xin Huang
21a72764b6 fix(darwin): use stable app path to prevent installs.ini accumulation (#150)
* fix: Add policies.json support for macOS (Darwin)

Previously, policies.json was only installed for Linux builds,
causing browser policies (including ExtensionSettings) to be
ignored on macOS. This resulted in extensions not being automatically
installed on macOS systems.

This fix adds the policies.json installation to the Darwin install
phase, mirroring the Linux behavior and ensuring policy enforcement
works correctly on macOS.

Fixes extension auto-installation and other policy-based features on macOS.

* fix(darwin): use stable app path to prevent installs.ini accumulation

Problem:
- Zen Browser creates install IDs based on the application path
- Wrapper script uses Nix store path which changes on every rebuild
- Each new path creates a new install ID entry in installs.ini
- Results in: multiple Dock icons, empty profiles, data loss

Solution:
- Use the stable Home Manager symlink path (~/.../Home Manager Apps/...)
- This path remains constant across Nix rebuilds
- Zen Browser sees the same path every time, reuses existing install ID
- Falls back to store path if symlink doesn't exist yet

Benefits:
- No activation scripts or workarounds needed
- Fixes root cause instead of symptoms
- Maintains profile continuity naturally
- Clean, elegant solution

* fix: force WAL checkpoint after updating places.sqlite

Problem:
- SQLite WAL mode writes changes to .sqlite-wal file first
- Changes aren't visible until WAL is checkpointed to main file
- Zen Browser reads stale data from main file on startup
- User needs to wait or manually trigger checkpoint to see updates

Solution:
- Execute PRAGMA wal_checkpoint(FULL) after all updates
- Forces immediate merge of WAL changes to main database file
- Ensures spaces/pins updates are visible on next Zen startup

This fixes the delay between home-manager rebuild and seeing
configuration changes in Zen Browser.

* fix(darwin): preserve correct bundle identifier in code signature

Problem:
- AdGuard recognizes apps by code signing identifier, not CFBundleIdentifier
- Nix's adhoc re-signing changes identifier from 'app.zen-browser.zen' to 'zen'
- This breaks AdGuard's app filtering for Nix-built Zen Browser

Solution:
- Explicitly set --identifier flag when re-signing with codesign
- Maintains 'app.zen-browser.zen' identifier for AdGuard compatibility
- Ensures proper ad-blocking and app recognition

This allows AdGuard and other security tools to correctly identify
Zen Browser even when built through Nix.
2025-11-05 06:14:41 -05:00
luisnquin
e03039c4e2 chore(update): beta @ x86_64 && aarch64 to 1.17.5b 2025-11-05 11:13:22 +00:00
Luis Quiñones
50d08d4831 revert: "chore(update): beta @ x86_64 && aarch64 to 1.17.5b"
Fixes https://github.com/0xc000022070/zen-browser-flake/issues/151.

This reverts commit 3bcfa80682.
2025-11-05 06:12:11 -05:00
Xin Huang
3a02f3ff6d fix: Add policies.json support for macOS (Darwin) (#149)
Previously, policies.json was only installed for Linux builds,
causing browser policies (including ExtensionSettings) to be
ignored on macOS. This resulted in extensions not being automatically
installed on macOS systems.

This fix adds the policies.json installation to the Darwin install
phase, mirroring the Linux behavior and ensuring policy enforcement
works correctly on macOS.

Fixes extension auto-installation and other policy-based features on macOS.
2025-11-04 21:43:55 -05:00
Xin Huang
15649fc947 fix(macos): use profilePath for places.sqlite and script (#148)
On macOS, Zen Browser stores profiles in:
Library/Application Support/Zen/Profiles/<profile>/

However, the module was using configPath for both scriptFile and
placesFile, which would place them in the wrong directory.

This commit introduces profilePath variable that points to the actual
profile directory location on macOS (configPath + /Profiles), ensuring
both places_update.sh and places.sqlite are in the correct location
alongside other profile files like containers.json.
2025-11-04 14:37:54 -05:00
Mridul Agarwal
715c66c973 readme: reformat to new option names (#146) 2025-11-04 13:14:31 -05:00
Xin Huang
7b1a29692a fix: add quotes to path with spaces in onChange script (#147)
The onChange script was failing on macOS when the path contains spaces
(e.g., "Library/Application Support/Zen"). Without quotes, the shell
interprets the path as multiple arguments, attempting to execute
"/Users/<username>/Library/Application" as a command, which results in
"Permission denied" error.

This fix adds double quotes around the script path to properly handle
spaces in the path.

Fixes the error:
  activate: line 336: /Users/<username>/Library/Application: Permission denied
2025-11-04 13:12:48 -05:00
luisnquin
3bcfa80682 chore(update): beta @ x86_64 && aarch64 to 1.17.5b 2025-11-04 17:12:01 +00:00
luisnquin
098a082491 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762229385 2025-11-04 04:23:32 +00:00
Luis Quiñones
10e69cb268 style: alejandra format (#144) 2025-11-02 20:04:20 -05:00
luisnquin
68b3775543 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762067011 2025-11-02 07:17:44 +00:00
luisnquin
5855db6427 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761970612 2025-11-01 04:21:09 +00:00
luisnquin
26142b8446 chore(update): beta @ x86_64 && aarch64 to 1.17.4b 2025-10-30 21:17:41 +00:00