Firefox: Difference between revisions

imported>Mvoggu
m Manually setting XDG_SESSION_TYPE to "wayland" prevents login into GNOME + Xorg. In most wayland systems, it seems to be set automatically anyway: https://unix.stackexchange.com/a/355476
imported>Chanbakjsd
Clean up installation section
Line 9: Line 9:
</syntaxhighlight>
</syntaxhighlight>


=== Home Manager ===
[[Home Manager]] provides options to manage {{PAGENAME}}. You can find them below [https://rycee.gitlab.io/home-manager/options.html#opt-programs.firefox.enable the Configuration Option ''programs.firefox.enable'' entry in the Home Manager Manual].


[[Home Manager]] provides options to manage {{PAGENAME}}. You can find them below the [https://rycee.gitlab.io/home-manager/options.html#opt-programs.firefox.enable the Configuration Option ''programs.firefox.enable'' entry in the Home Manager Manual].
<syntaxhighlight lang="nix">
# Home Manager when not using any additional Firefox options
home.packages = with pkgs; [ firefox ]


<syntaxhighlight lang="nix">
# Home Manager programs.firefox style
programs.firefox.enable = true;
programs.firefox.enable = true;
</syntaxhighlight>
</syntaxhighlight>
or
<syntaxhighlight lang="nix">
home.packages = with pkgs; [ firefox ]
</syntaxhighlight>
if you do not need the home-manager options


=== Non-NixOS ===
=== Non-NixOS ===
[https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management declarative package management on non-nixos]
Firefox can be installed by specifying the packages declaratively as stated in the [https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management manual].


==Other Editions==
==Other Editions==
Line 40: Line 34:


* Use <code>firefox-wayland</code>, e.g.:<syntaxhighlight lang="nix">
* Use <code>firefox-wayland</code>, e.g.:<syntaxhighlight lang="nix">
# NixOS system wide firefox install
# NixOS system wide Firefox install
environment.systemPackages = with pkgs; [ firefox-wayland ]
environment.systemPackages = with pkgs; [ firefox-wayland ]


# Home Manager when not using any additional firefox options
# Home Manager when not using any additional Firefox options
home.packages = with pkgs; [ firefox-wayland ]
home.packages = with pkgs; [ firefox-wayland ]