summaryrefslogtreecommitdiff
path: root/hosts/shinji/firefox-nightly.nix
blob: 497350e771452be31f88d51e264fcad2b485b61e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  pkgs,
  inputs,
  system,
  ...
}: let
  firefox = inputs.firefox-nightly.packages.${system}.firefox-nightly-bin;
  my-firefox = pkgs.writeShellApplication rec {
    name = "firefox-nightly";
    text = ''
      export MOZ_PROFILE="$HOME"/.${name}
      mkdir -p "$MOZ_PROFILE"
      ${firefox}/bin/${name} --profile "$MOZ_PROFILE" "$@"
    '';
  };
in {
  environment.systemPackages = [my-firefox];
}