Chromium: Difference between revisions
imported>Fadenb Created page with "'''Note''': Firefox requires the Google Hangouts Video plugin but Chromium (37+) doesn't require any plugin to use Google Hangouts. == Per User == It is possible to configur..." |
imported>Fadenb m Syntaxhighlight |
||
Line 8: | Line 8: | ||
~/.nixpkgs/config.nix: | ~/.nixpkgs/config.nix: | ||
< | <syntaxhighlight lang="nix"> | ||
{ | { | ||
allowUnfree = true; | allowUnfree = true; | ||
Line 23: | Line 23: | ||
} | } | ||
</ | </syntaxhighlight> | ||
After these options have been set you need to install the "Wrapper" versions of Firefox: | After these options have been set you need to install the "Wrapper" versions of Firefox: | ||
< | <syntaxhighlight lang="console"> | ||
$ nix-env -i firefox-with-plugins chromium | $ nix-env -i firefox-with-plugins chromium | ||
</ | </syntaxhighlight> | ||
If you are using a version that does not have a wrapper, you can write one (add to config.nix and install with `nix-env -iA nixpkgs.pkgs.firefox-bin-wrapper` or `nix-env -iA nixos.pkgs.firefox-bin-wrapper`): | If you are using a version that does not have a wrapper, you can write one (add to config.nix and install with `nix-env -iA nixpkgs.pkgs.firefox-bin-wrapper` or `nix-env -iA nixos.pkgs.firefox-bin-wrapper`): | ||
< | <syntaxhighlight lang="nix"> | ||
packageOverrides = pkgs: with pkgs; rec { | packageOverrides = pkgs: with pkgs; rec { | ||
# FF bin with plugins | # FF bin with plugins | ||
firefox-bin-wrapper = wrapFirefox { browser = firefox-bin; }; | firefox-bin-wrapper = wrapFirefox { browser = firefox-bin; }; | ||
}; | }; | ||
</ | </syntaxhighlight> | ||
== For NixOS == | == For NixOS == | ||
Line 48: | Line 48: | ||
/etc/nixos/configuration.nix: | /etc/nixos/configuration.nix: | ||
< | <syntaxhighlight lang="nix"> | ||
... | ... | ||
Line 69: | Line 69: | ||
environment.systemPackages = [ pkgs.firefoxWrapper pkgs.chromium ]; | environment.systemPackages = [ pkgs.firefoxWrapper pkgs.chromium ]; | ||
... | ... | ||
</ | </syntaxhighlight> | ||
then run <pre>nixos-rebuild switch</pre> | then run <pre>nixos-rebuild switch</pre> | ||
Line 83: | Line 83: | ||
For intel: | For intel: | ||
< | <syntaxhighlight lang="nix"> | ||
services.xserver.vaapiDrivers = [ pkgs.vaapiIntel ]; | services.xserver.vaapiDrivers = [ pkgs.vaapiIntel ]; | ||
</ | </syntaxhighlight> | ||
== Gnome Shell extensions == | == Gnome Shell extensions == |