aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: fa5420e49cb65fe72927bc4af6e8fea10c51c5de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ configuration ? import ./firefox-configuration.nix }:

let
  pkgs = import (builtins.fetchTarball {
    # 2020-06-15 nixos-unstable, pinned to make sure this project still works without maintenance
    url = "https://github.com/NixOS/nixpkgs/archive/0a146054bdf6f70f66de4426f84c9358521be31e.tar.gz";
    sha256 = "154ypjfhy9qqa0ww6xi7d8280h85kffqaqf6b6idymizga9ckjcd";
  }) {
    config = {};
    overlays = [];
  };

  ff = pkgs.callPackage nix/lib.nix {};

  eval = ff.eval configuration;
in rec {
  inherit (eval) options config;
  inherit (eval.config) policies preferences;

  bundle = ff.bundle {
    inherit policies preferences;
    patchOmniJaCommand = config.omnija.browser.patchCommand;
  };

  launcher = ff.launcher bundle;

  export = ff.export {
    inherit policies preferences;
    # feel free to change this
    selfPath = "/opt/firefox";
  };
  manual = ff.docs options;
}