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]] 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]. | |||
<syntaxhighlight lang="nix"> | |||
# Home Manager when not using any additional Firefox options | |||
home.packages = with pkgs; [ firefox ] | |||
# Home Manager programs.firefox style | |||
programs.firefox.enable = true; | programs.firefox.enable = true; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Non-NixOS === | === Non-NixOS === | ||
[https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management | 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 | # NixOS system wide Firefox install | ||
environment.systemPackages = with pkgs; [ firefox-wayland ] | environment.systemPackages = with pkgs; [ firefox-wayland ] | ||
# Home Manager when not using any additional | # Home Manager when not using any additional Firefox options | ||
home.packages = with pkgs; [ firefox-wayland ] | home.packages = with pkgs; [ firefox-wayland ] | ||