diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2025-12-12 13:29:05 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2025-12-12 13:29:05 +0530 |
| commit | a1522f065e9b3ebc253068e04fbf869e881faf3b (patch) | |
| tree | bae3d4c01069a7416e3fc1949cf71e9a1be72e1c /nixos/apps/browser.nix | |
| parent | 42e48b718aa7757819c3c949c23f7fb638a54bdf (diff) | |
switched from firefox to zen
Diffstat (limited to 'nixos/apps/browser.nix')
| -rw-r--r-- | nixos/apps/browser.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixos/apps/browser.nix b/nixos/apps/browser.nix new file mode 100644 index 0000000..5b6ea42 --- /dev/null +++ b/nixos/apps/browser.nix @@ -0,0 +1,35 @@ +{ config, inputs, system, ... }: +{ + environment.systemPackages = [ + inputs.zen-browser.packages."${system}".default + ]; + xdg.mime = let + value = let + zen-browser = inputs.zen-browser.packages.${system}.default; + in + zen-browser.meta.desktopFileName; + + associations = builtins.listToAttrs (map (name: { + inherit name value; + }) [ + "application/x-extension-shtml" + "application/x-extension-xhtml" + "application/x-extension-html" + "application/x-extension-xht" + "application/x-extension-htm" + "x-scheme-handler/unknown" + "x-scheme-handler/mailto" + "x-scheme-handler/chrome" + "x-scheme-handler/about" + "x-scheme-handler/https" + "x-scheme-handler/http" + "application/xhtml+xml" + "application/json" + "application/pdf" + "text/plain" + "text/html" + ]); + in { + defaultApplications = associations; + }; +} |
